Subject: Ping another computer
Posted By: Phreaky Post Date: 1/18/2006 10:18:41 AM
Can anyone tell me how to ping another computer, or if possible, how to tell the ip's they are connected to with pinging. I saw a similar question posted, but there were no replies or it was too old to show replies. Any help would be greatly appreciated.

Reply By: ciderpunx Reply Date: 1/23/2006 11:49:47 AM
> Can anyone tell me how to ping another computer

1. On windows 95/98: go start | run and type command
   On Windows 200/xp: go start | run and type cmd
   On unix/linux get a command prompt or xterm up
2. Type ping <IP_ADDRESS>, replacing <IP_ADDRESS> with the IP of the computer you want to ping. Or ping <DOMAIN_NAME> . On unix/linux systems, use ctrl-c to stop the pinging.

> or if possible, how to tell the ip's they are connected to with pinging.
You'd probably use netstat for this:

On windows:
C:\Documents and Settings\Administrator.CHARLIE.000>netstat -p tcp -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1028           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1035           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1042           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1048           0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1047         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1047         127.0.0.1:1048         ESTABLISHED
  TCP    127.0.0.1:1048         127.0.0.1:1047         ESTABLISHED
  TCP    192.168.129.1:139      0.0.0.0:0              LISTENING
  TCP    192.168.254.7:139      0.0.0.0:0              LISTENING
  TCP    192.168.254.7:1027     0.0.0.0:0              LISTENING
  TCP    192.168.254.7:1027     192.168.254.202:139    ESTABLISHED
  TCP    192.168.254.7:1028     192.168.254.203:445    ESTABLISHED
  TCP    192.168.254.7:1031     0.0.0.0:0              LISTENING
  TCP    192.168.254.7:1031     192.168.254.203:139    ESTABLISHED
  TCP    192.168.254.7:1042     192.168.254.202:22     ESTABLISHED
  TCP    192.168.254.7:1838     0.0.0.0:0              LISTENING
  TCP    192.168.254.7:1838     192.168.254.202:139    ESTABLISHED
  TCP    192.168.254.7:2092     0.0.0.0:0              LISTENING
  TCP    192.168.254.7:2092     192.168.254.14:139     ESTABLISHED

on unix/linux:
 netstat -tpan
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      -
tcp        0      0 192.168.254.202:143     192.168.254.9:1215      ESTABLISHED -
tcp        0      0 192.168.254.202:139     192.168.254.30:1135     ESTABLISHED -
tcp        0      0 192.168.254.202:143     192.168.254.120:2249    TIME_WAIT   -
tcp        0      0 192.168.254.202:139     192.168.254.48:1027     ESTABLISHED -
tcp        0      0 192.168.254.202:143     192.168.254.120:2251    TIME_WAIT   -
tcp        0      0 192.168.254.202:139     192.168.254.120:2058    ESTABLISHED -
tcp        0      0 192.168.254.202:139     192.168.254.22:1060     ESTABLISHED -
tcp        0      0 192.168.254.202:139     192.168.254.4:1718      ESTABLISHED -
tcp        0      0 192.168.254.202:143     192.168.254.120:2250    TIME_WAIT   -
tcp        0      0 192.168.254.202:139     192.168.254.101:1816    ESTABLISHED -
-----8<-----

HTH
Charlie

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
Reply By: Phreaky Reply Date: 1/23/2006 12:31:30 PM
Thank you so much for the help! I am a little confused about the following section

or if possible, how to tell the ip's they are connected to with pinging.
> You'd probably use netstat for this: > > On windows: > C:\Documents and Settings\Administrator.CHARLIE.000>netstat -p tcp -an

I am not sure how to enter the last line there. I am not extremely skilled on the computer so I am sorry if this is an idiotic question. Thank you so much for any help.


Go to topic 39024

Return to index page 387
Return to index page 386
Return to index page 385
Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378