how to look up you local machine’s external IP address (not 127.0.0.1)

I needed to write some code to find out my local machine’s IP address. I wanted to tell another machine my IP address so that other machine could open a socket connection back to my machine. A little googling turned up some sample code which works on both Linux and Mac OS X. Also I fiddled around with that code and condensed it down a bit.

1 thought on “how to look up you local machine’s external IP address (not 127.0.0.1)”

  1. Great cool stuff about the External Ip-address checking It is new information for me..I know only Domain Ip-address details Finding i usually check the Domain host search in here now i know external ip-address Checking.

Leave a Reply

Your email address will not be published. Required fields are marked *