How to get WAN IP of a router on double NAT (not a public IP)?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












enter image description here



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.










share|improve this question



















  • 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 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




    There is no general way to find out the address WAN IP2. Why would you need that address?
    – RalfFriedl
    Sep 22 at 18:17














up vote
1
down vote

favorite
1












enter image description here



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.










share|improve this question



















  • 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 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




    There is no general way to find out the address WAN IP2. Why would you need that address?
    – RalfFriedl
    Sep 22 at 18:17












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





enter image description here



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.










share|improve this question















enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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 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




    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




    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 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




    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










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










enter image description here



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.






share|improve this answer


















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










enter image description here



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.






share|improve this answer


















  • 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














up vote
0
down vote



accepted










enter image description here



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.






share|improve this answer


















  • 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












up vote
0
down vote



accepted







up vote
0
down vote



accepted






enter image description here



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.






share|improve this answer














enter image description here



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.







share|improve this answer














share|improve this answer



share|improve this answer








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












  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay