Trying to get NAT's external IPAddress with INATExternalIPAddressCallback in C#
How do I get the external IP Address of a NAT using the windows library? I am trying to find any information on INATExternalIPAddressCallback, but have only found one example in C++ using unavailable interfaces to C#. Any guidance would be much appreciated. -Karl Sorry, that I don't answer with an existing API from Windows that uses the UPNP service, but it migh help you You could also use a STUN-server on the internet, there are many open ones, every VOIP provider has one. http://en.wikipedia.org/wiki/STUN http://tools.ietf.org/html/rfc3489 e.g. open an UDP-socket, connect to stun.gmx.net on