Getting list of IP's on Linux

Please, can anybody tell me how can I get the IP from people that communicate with me even on ICQ any kind of site I visit.
I used to type ARP -A at DOS terminal over Windows. Is there any kind of command that I have to type or is there any kind of program I need to get these IP's?

Thanks

Edward
EduModestoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ahoffmannConnect With a Mentor Commented:
1. arp is completely useless, except the remote ICQ cliens are i the same network segment
2. netstat -an
   as suggested is the answer, you should see an ESTABLISHED for each IP on your ICQ port
3. "NAT does not hide external addresses"
   yes and no, depending on your definition of NAT
   if "NAT" means SNAT or DNAT from iptables (or any equivalent functionality from your router), you don't see remote IPs
   if "NAT" means MASQUERADING (like in iptables), then you see remote IPs
0
 
Karl Heinz KremerCommented:
Linux does also support the arp command. It may however not be in your default search path. Try /sbin/arp or /usr/sbin/arp if just typing arp -a does not work.
0
 
glassdCommented:
Does Linux support the "last" command. On Solaris this shows who has connected to the machine from where.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
JivkoCommented:
netstat -a
0
 
Karl Heinz KremerCommented:
glassd,
yes, last is also available on Linux.
0
 
EduModestoAuthor Commented:
but how can I see the table of IP's that are communicating with me. For example, i tried arp -a but it only shows me my current ip address and thet physical address of my ethernet board. How can i see all the ips that i am communicating?
0
 
shivsaCommented:
netstat -a command will tell u how many ips are connected to and what port.
0
 
Karl Heinz KremerCommented:
If your computer is behind a NAT firewall, you will not see any external addresses with both netstat and arp.
0
 
_tackCommented:
netstat -a (-n for not resolving names) will show all connected IP address,
NAT does not hide external addresses. (at least Linux NAT does not this).
0
 
brabardCommented:
Just one more thing - for better and shorter output try use :
#netstat -nutap|grep -v *:*
0
All Courses

From novice to tech pro — start learning today.