I have a computer on the local network, behind a NAT router. I have some 192.168.0.x addresses, but I really want to know my public IP address, not something mentioned in
How to get the IP address of the server on which my C# application is running on?
or
How to get the IP address of a machine in C#
I need C# code.
Is it possible? If so, how?
After some search, and by expanding my requirements, I found out that this will get me not only the IP, but GEO-location as well:
XML returned, and thus key/value dictionary will be filled as such:
And for convenience, return class: