Page 1 of 1

How to ping a specific computer of LAN via WAN.

PostPosted: Tue May 31, 2011 9:50 am
by pranav2794
I wanted to ping a specific computer in a remote LAN from my home through the Internet.
Let us suppose that the public IP address of that remote WAN is 'X'
and the IP address of the specific computer in the LAN is 192.168.1.13 .

How to do it ?

Re: How to ping a specific computer of LAN via WAN.

PostPosted: Tue May 31, 2011 5:15 pm
by Goatboy
You can't. The point of a NAT-enabled router is to hide the details of the computers behind it, and to allow them to share a single public IP. Unless one is being port-forwarded to, you're out of luck.

Re: How to ping a specific computer of LAN via WAN.

PostPosted: Wed Jun 01, 2011 10:51 am
by pranav2794
So you mean I have to set a inbound port forward and then from other computer I have to ping the specific computer in the LAN with that set specific port in my ICMP request for ping.

But I don't know how to do this. I can forward a port but how to tell my ping request to go to the certain port.
And even if I did this, then the port on the router will allow the ping request to go to through that port but it still don't know to which host the request is being sent.

Re: How to ping a specific computer of LAN via WAN.

PostPosted: Wed Jun 01, 2011 5:01 pm
by Goatboy
The owner of the network in question would need to set that up. And for determining live hosts, you would usually use something other than a ping if port-forwarding is involved. You can use telnet to check the ports for live services, or automate this with something like nmap. Still though, you won't know which computer is which behind the router.

Re: How to ping a specific computer of LAN via WAN.

PostPosted: Thu Jun 09, 2011 10:37 pm
by AlmightyFracta
Very informative thread! Ok so I can connect via ssh to my pc. Am I able to use nmap back over ssh to scan the network of the client pc I'm using?

Re: How to ping a specific computer of LAN via WAN.

PostPosted: Fri Jun 10, 2011 2:06 am
by Goatboy
SSH lets you control another PC as if you were sitting at it, so no.