Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: ip question

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    ip question

    is there a command or program that can show me a list of ip addresses connected to a ip that i provide?

  2. #2
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006

    Re: IP question

    Not sure what you mean.
    Can you describe in more detail?

    Are you refering to ifconfig or netstat ??

    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill

    ... then the Unix-Gods created "man" ...

  3. #3
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    If you're asking how to see a list of IP addresses that are connected to a listening service on your box, you can use something like:
    netstat -atn | grep ':22 '
    This uses netstat to show all tcp connections, and doesn't try to resolve IPs to names. The grep command is to narrow the results down. The colon ( : ) before the port number and the space afterwards will help so you don't get false positives (e.g. 1022, 222, etc.).

    In your case you'll want to grep for the port your service is listening on.

  4. $spacer_open
  5. #4
    ok. what im wantin to try to do is get a list of player ip addresses from a game server. ive been told that there is a command that can do this in windows but i dont know it and was wonderin if anyone knew of a Linux command to do the same.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts