How to get my IP Address ?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Folks. I am sure its a really simple trick, but I am obviously missing it. Cheers Mark Gilbert. -- mark@gallery.co.uk Tel: +44 208 340 5677 fax: +44 870 055 7790 http://www.gallery.co.uk New Product ! - Zen MetaCorder Location Sound Field Recorder http://www.metacorder.info _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I have setup a very simple socket from one machine to another. I want to send back very very simple HTML. within the HTML I need to include my own IP address, but I am not sure how to get it. I tried gethostbyname("localhost"), but this returns 127.0.0.1 which works on the local machine, but is not my address on the network. For example, I happen to know that my machine is 192.169.1.104, and I can reach my machine remotely using this. How does my app learn that this is my address ? This email sent to site_archiver@lists.apple.com
participants (1)
-
Mark Gilbert