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
A hacky way is to fetch and scrape one of the many 'What Is My IP' type websites.