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.
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! – Sep 22 '18 at 13:44tracert
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 '18 at 16:03I would like to have a function to check that user is on double NAT or single NAT. To check WAN IP by visit some webpage eg: whatismyip.com is one of the solutions to compare the result.
I think external IP (WAN IP) can access via uPnP enabled routers. I need to learn practical of UPnP/IGD. Hope someone can teach me the command line.
– Boontawee Home Sep 23 '18 at 15:09