How to get WAN IP of a router on double NAT (not a public IP)?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am on double NAT (behind 2 routers).
I known how to get the public IP by visiting some webpages or use dig command.
Yes I known WAN IP usually same as the public IP.
I talk about WAN IP #2 that can be a private IP.
I tried tracert and pathping commands but didn't work.
Maybe we can't known the WAN IP by general way.
But I saw one IP camera app can find it. Maybe it's "tinyCam Monitor" on android.
linux ip nat router
 |Â
show 4 more comments
up vote
1
down vote
favorite
I am on double NAT (behind 2 routers).
I known how to get the public IP by visiting some webpages or use dig command.
Yes I known WAN IP usually same as the public IP.
I talk about WAN IP #2 that can be a private IP.
I tried tracert and pathping commands but didn't work.
Maybe we can't known the WAN IP by general way.
But I saw one IP camera app can find it. Maybe it's "tinyCam Monitor" on android.
linux ip nat router
1
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you saidI known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!
â Goro
Sep 22 at 13:44
1
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
1
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
2
Do you know any details about the first NAT router? Also,tracert
andpathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK,tracert
uses UDP packets; you may trytcptraceroute
for TCP packets ormtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.
â dirkt
Sep 22 at 16:03
1
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17
 |Â
show 4 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am on double NAT (behind 2 routers).
I known how to get the public IP by visiting some webpages or use dig command.
Yes I known WAN IP usually same as the public IP.
I talk about WAN IP #2 that can be a private IP.
I tried tracert and pathping commands but didn't work.
Maybe we can't known the WAN IP by general way.
But I saw one IP camera app can find it. Maybe it's "tinyCam Monitor" on android.
linux ip nat router
I am on double NAT (behind 2 routers).
I known how to get the public IP by visiting some webpages or use dig command.
Yes I known WAN IP usually same as the public IP.
I talk about WAN IP #2 that can be a private IP.
I tried tracert and pathping commands but didn't work.
Maybe we can't known the WAN IP by general way.
But I saw one IP camera app can find it. Maybe it's "tinyCam Monitor" on android.
linux ip nat router
linux ip nat router
edited Sep 22 at 14:27
asked Sep 22 at 12:14
Boontawee Home
1064
1064
1
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you saidI known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!
â Goro
Sep 22 at 13:44
1
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
1
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
2
Do you know any details about the first NAT router? Also,tracert
andpathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK,tracert
uses UDP packets; you may trytcptraceroute
for TCP packets ormtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.
â dirkt
Sep 22 at 16:03
1
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17
 |Â
show 4 more comments
1
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you saidI known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!
â Goro
Sep 22 at 13:44
1
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
1
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
2
Do you know any details about the first NAT router? Also,tracert
andpathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK,tracert
uses UDP packets; you may trytcptraceroute
for TCP packets ormtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.
â dirkt
Sep 22 at 16:03
1
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17
1
1
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you said
I known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!â Goro
Sep 22 at 13:44
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you said
I known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!â Goro
Sep 22 at 13:44
1
1
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
1
1
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
2
2
Do you know any details about the first NAT router? Also,
tracert
and pathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK, tracert
uses UDP packets; you may try tcptraceroute
for TCP packets or mtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.â dirkt
Sep 22 at 16:03
Do you know any details about the first NAT router? Also,
tracert
and pathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK, tracert
uses UDP packets; you may try tcptraceroute
for TCP packets or mtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.â dirkt
Sep 22 at 16:03
1
1
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17
 |Â
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Private LAN clients can known external IP only when the router enabled uPnP
I had recheck the android app "tinyCam Monitor". She known the external IP when router is enabled uPnP feature.
So I check around internet and found MiniUPnP (http://miniupnp.free.fr/) command that can show the external IP via UPnP/IGD. I don't know much about UPnP/IGD.
Old routers notes
UPnP implementations are potentially subject to security breaches. Badly implemented or configured UPnP IGDs are vulnerable. Security researcher HD Moore did a good work to reveal vulnerabilities in existing implementations : Security Flaws in Universal Plug and Play (PDF). A common problem is to let SSDP or HTTP/SOAP ports open to the internet : they should be only reachable from the LAN.
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Private LAN clients can known external IP only when the router enabled uPnP
I had recheck the android app "tinyCam Monitor". She known the external IP when router is enabled uPnP feature.
So I check around internet and found MiniUPnP (http://miniupnp.free.fr/) command that can show the external IP via UPnP/IGD. I don't know much about UPnP/IGD.
Old routers notes
UPnP implementations are potentially subject to security breaches. Badly implemented or configured UPnP IGDs are vulnerable. Security researcher HD Moore did a good work to reveal vulnerabilities in existing implementations : Security Flaws in Universal Plug and Play (PDF). A common problem is to let SSDP or HTTP/SOAP ports open to the internet : they should be only reachable from the LAN.
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
add a comment |Â
up vote
0
down vote
accepted
Private LAN clients can known external IP only when the router enabled uPnP
I had recheck the android app "tinyCam Monitor". She known the external IP when router is enabled uPnP feature.
So I check around internet and found MiniUPnP (http://miniupnp.free.fr/) command that can show the external IP via UPnP/IGD. I don't know much about UPnP/IGD.
Old routers notes
UPnP implementations are potentially subject to security breaches. Badly implemented or configured UPnP IGDs are vulnerable. Security researcher HD Moore did a good work to reveal vulnerabilities in existing implementations : Security Flaws in Universal Plug and Play (PDF). A common problem is to let SSDP or HTTP/SOAP ports open to the internet : they should be only reachable from the LAN.
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Private LAN clients can known external IP only when the router enabled uPnP
I had recheck the android app "tinyCam Monitor". She known the external IP when router is enabled uPnP feature.
So I check around internet and found MiniUPnP (http://miniupnp.free.fr/) command that can show the external IP via UPnP/IGD. I don't know much about UPnP/IGD.
Old routers notes
UPnP implementations are potentially subject to security breaches. Badly implemented or configured UPnP IGDs are vulnerable. Security researcher HD Moore did a good work to reveal vulnerabilities in existing implementations : Security Flaws in Universal Plug and Play (PDF). A common problem is to let SSDP or HTTP/SOAP ports open to the internet : they should be only reachable from the LAN.
Private LAN clients can known external IP only when the router enabled uPnP
I had recheck the android app "tinyCam Monitor". She known the external IP when router is enabled uPnP feature.
So I check around internet and found MiniUPnP (http://miniupnp.free.fr/) command that can show the external IP via UPnP/IGD. I don't know much about UPnP/IGD.
Old routers notes
UPnP implementations are potentially subject to security breaches. Badly implemented or configured UPnP IGDs are vulnerable. Security researcher HD Moore did a good work to reveal vulnerabilities in existing implementations : Security Flaws in Universal Plug and Play (PDF). A common problem is to let SSDP or HTTP/SOAP ports open to the internet : they should be only reachable from the LAN.
edited Sep 29 at 6:57
answered Sep 23 at 15:38
Boontawee Home
1064
1064
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
add a comment |Â
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
1
1
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
To make this a useful answer, at least describe how you used MiniUPnP, what your particular router showed when using it, and what brand and model of router it is - things will likely work differently for other routers.
â dirkt
Sep 23 at 16:18
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470703%2fhow-to-get-wan-ip-of-a-router-on-double-nat-not-a-public-ip%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Hi @Boontawee Home. the question would benefit from additional clarifications. For example, you said
I known how to get the public IP by visiting some webpages
what do you mean by that? What commands did you try? Additional clarifications may help us to analyze your problem more accuratly!â Goro
Sep 22 at 13:44
1
Possible duplicate of What's the shortest way to find my WAN IP address at the command line?
â Goro
Sep 22 at 14:18
1
I think you'd need some client on that address space... or a STUN service running on the "internal" WAN
â RubberStamp
Sep 22 at 14:19
2
Do you know any details about the first NAT router? Also,
tracert
andpathping
are Windows commands. Is there a Linux host on LAN with private range 2? AFAIK,tracert
uses UDP packets; you may trytcptraceroute
for TCP packets ormtr
for ICMP packets, in the case the NAT router treats them differently. Some routers also offer an UPnP interface to sidestap NATing; you could try that as well.â dirkt
Sep 22 at 16:03
1
There is no general way to find out the address WAN IP2. Why would you need that address?
â RalfFriedl
Sep 22 at 18:17