You can try talking the IGD protocol to a home Internet router
(more commonly known as UPnP for routers). Of course that only
works with home Internet routers where UPnP is enabled...
You can also talk to a public STUN or STUNT server.
Finally, you can have your own server return that information to
your clients (typically you'd just host a STUN/STUNT server).
Microsoft MVP [VC], MCSD
MVP VC FAQ: http://vcfaq.mvps.org
Post by firstname.lastname@example.org
Basically I need to get the packet source IP address seen by
the server. The locally IP addres may be different from IP address
the server (consider the ISP case), right? Will getsockname still