Imagine a situation, I have PC with two lan cards, one is connected to internet another is connected to local network, how can I detect IP which is connected to internet wi
You could simply read http://myip.dnsomatic.com/
It's a reliable service by OpenDNS, and I use it to get the external IP all the time.