LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-08-2005, 08:27 AM   #1
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Rep: Reputation: 15
Finding the ip of a neighbor linux box


Hi,

Is there any way to find out the ip address of a neighbour linux box without doing anything on the neighbour box.I don't want to change the ip-address . just to know whether it is possible to find the ip from another system.

Jomy
 
Old 01-08-2005, 11:56 AM   #2
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Assuming you are on the same LAN, there are several ways of doing this. Here is one:

Ping your broadcast address.
Check out the new entry in your arp table.

To find out your broadcast address:
Open a shell, and su to root. Type:
Code:
ifconfig eth0
replace "eth0" by whatever suit your system or just don't put it and it will display all your NIC's info
Then look for sth like this ==> Bcast:192.168.1.255 <== this is my broadcast address.

Now ping it:
Code:
ping -b 192.168.1.255
Let it go for a couple of sec and then hit ctrl+c
Now type:
Code:
arp -a
That'll show you the hostname (1st column) the IP address (2nd one) the Mac address (3rd one) of all the machine in your LAN that answered the broadcast.

Note that if one box as a firewall loaded, this wont work (the firewall will block the ping)
 
Old 01-08-2005, 02:37 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
The best way to find out is to ask the neighbor. If they won't tell you, you have no business trying to do anything else to figure it out.

Be aware the LQ does not allow threads about cracking or attacking other systems
 
Old 01-08-2005, 03:21 PM   #4
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Quote:
The best way to find out is to ask the neighbor. If they won't tell you, you have no business trying to do anything else to figure it out
I partially disagree with this. It depens on the circumptances. I'm a network admin, and knowing how to "trace" an IP has been extremely usefull to me many times.
I said partially because you're obviously right about the fact that helping others to do bad things has no place in this forum. But any help you give can be use to do bad things so where is the limit? If one guy asks for help to install a sniffer on his machine, should you not answer because he could use it to steal passwords? I'm using sniffers to do my job, not to steal password. You see my point?

I did think about it before answering this post. And I concluded that this does not cross the line (yet). I'll keep helping as long as I believe we stay on the right side. If you think I'm wrong, then ask a moderator to decide.
 
Old 01-08-2005, 04:02 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by jeickal
I partially disagree with this. It depens on the circumptances.
Given the conditions of your answer, yes, this thread is almost certainly on acceptable ground. However, the original question was vague enough that my interpretation was that the poster was referring to a computer that wasn't part of the LAN, and this thread had the potential to head in the wrong direction. If I'm wrong, both you and Jomy have my apologies.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
neighbor table overflow Homer Glemkin Linux - Networking 8 11-02-2005 05:37 PM
IPv6 | Neighbor Discovery asafro Linux - Networking 1 09-21-2005 02:14 PM
Finding the large files on a linux box antken Linux - General 1 08-31-2004 05:06 PM
SQUID unknown neighbor type, ? mfeoli Linux - Networking 1 01-26-2004 12:42 PM
Samba problem, nmblookup not finding W2K box dwynter Linux - Networking 5 06-24-2003 02:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration