I\'m not too sure how to go about getting the external IP address of the machine as a computer outside of a network would see it.
My following IPAddress class only g
The truth is: 'you can't' in the sense that you posed the question. NAT happens outside of the protocol. There is no way for your machine's kernel to know how your NAT box is mapping from external to internal IP addresses. Other answers here offer tricks involving methods of talking to outside web sites.