Is it possible to get the NAT Ip Address?

8

1

is it possible to get my nat ip address across the Internet? I know I can see my ISP address but not my internal address. I remember seeing this done one time but I am thinking it was a java applet and not just a web page. can it be done with a regular web page?

edit for clarification: I want to know if there is a way someone can get my local ip on my internal network from the Internet.

johnny

Posted 2009-10-30T15:07:20.153

Reputation: 1 783

Yes its easy (and was doable in 2009) e.g. http://blog.jeremiahgrossman.com/2007/01/goodbye-applet-hello-nated-ip-address.html

– symcbean – 2016-08-31T18:54:43.933

@symcbean Hopefully this is not true anymore. – johnny – 2016-08-31T19:28:08.457

Why would it have changed? – symcbean – 2016-08-31T19:35:54.700

Security? Javascript being able to leverage Java without the user intervening is dangerous. – johnny – 2016-08-31T19:39:48.677

You want to find the IP address you have on your local network? Or do you want to know whether someone else can find it? – innaM – 2009-10-30T15:15:20.127

Answers

5

Hi, is it possible to get my nat ip address across the Internet?

By normal means no. Your internal address will be mapped to your router public address and the information lost to anyone outside. When they connect back to you (being an active connection or a response packet from a connection you established), your router will remap the public address back to your internal IP address (making also any necessary changes to the packets contents) without the outside knowledge.

However, if someone from the outside somehow gains access to your router translation tables (where the mappings and connection states are kept), then indeed they can learn about your internal IP.

They can also learn about your internal IP if you actively advertise it to those you connect to. This can be happen in numerous ways. An application may simply read your internal IP from your network device and forward it along when connecting. And this is how probably you've seen this happen. With Java enabled, for instance, a browser can unwillingly and without your knowledge send your internal IP by running a malicious webpage script.

Note however that there are also legitimate uses for this, like recording internal and external IPs for purposes of abuse control and reporting.

However, the internal IP is of no practical use to anyone outside. They can't use it to access your machine. So this shouldn't worry you in any way.

A Dwarf

Posted 2009-10-30T15:07:20.153

Reputation: 17 756

"the internal IP is of no practical use to anyone outside" it's useful for unique identification, which interests advertisers etc. – Carl G – 2015-01-13T20:35:52.530

The router is the NAT boundary in most home setups. it is transparent to the ISP, so "access to your ISP router translation tables" don't matter, they would need the NAT table in your personal router. If they can get that then they can already get your ip address. – MDMarra – 2009-10-30T15:49:36.063

Actually, I wasn't thinking in home or any other network in particular. Wherever the router that does the IP mapping is, it is where the Translation tables are located. But I will edit to clarify. – A Dwarf – 2009-10-30T16:09:07.647

Done. It was a simple matter of removing the word "ISP". – A Dwarf – 2009-10-30T16:10:26.303

1

I was using https://www.whatismyip.com/ and I was suprised they could see my NAT address. I looked at the javascript, it was running RTCPeerConnection through ICE

Robin

Posted 2009-10-30T15:07:20.153

Reputation: 143

I saw that the other day too and remembered this question. – johnny – 2018-03-28T15:31:08.197

1

As far as I know, only if they can get into your router setup or if you have NAT / virtual server on the router that tells an external request which internal IP to use on a given port.

Other than that, the router is the only thing that the outside world can see and it has your external IP. I'm sure that someone can hack a router for this info though.

sKevin

Posted 2009-10-30T15:07:20.153

Reputation: 61

0

edit for clarification: I want to know if there is a way someone can get my local ip on my internal network from the Internet.

As often the answer is "it depends". Besides the possibilities of Java and other applications mentioned by @A Dwarf, from pure network/TCP perspective you are basically asking if someone can detect that you are using NAT. So the answer is no; if this was possible you would not have to use NAT in the first place :)

scherand

Posted 2009-10-30T15:07:20.153

Reputation: 259