14
A hacky way is to fetch and scrape one of the many 'What Is My IP' type websites.
Use tracert. The first hop should always be on the same subnet as your internet NIC.
example from command prompt.
tracert google.com
the first line is 10.0.0.254 and my nic has the ip of 10.0.2.48. Then it is a simple exercise of parsing the output from tracert.