0

I understand the differences between LAN and WAN addresses. My question is: while outside a network, how do you target a specific machine's address beneath a public IP?

Since a public IP for each machine on a given network will be the same, how does one find the specific DNS address on a particular network?

Example: Using Mac OS, I could very easily ssh into a machine using their specific internal IP (i.e. 192.168.0.100). What is the equivalent as an outsider?

2
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer.
    – Ron Maupin
    Dec 25, 2018 at 9:28
  • Done /x1f/x00/x00/x00 Jan 2, 2019 at 18:04

1 Answer 1

3

while outside a network, how do you target a specific machine's address beneath a public IP?

You can't. The private IP address only makes sense within its local scope. From without, the private IP address is useless.

There are ways to work around this though. One is to translate from a public address to a private address (most often in connection with a transport layer port), known as destination NAT, port forwarding, virtual host, virtual IP, ...

The other is to directly connect to the local scope using some kind of tunneling - VPN, PPTP, SSH, ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.