How to get my IP Address ?
How to get my IP Address ?
- Subject: How to get my IP Address ?
- From: Mark Gilbert <email@hidden>
- Date: Sat, 27 Nov 2004 15:53:22 +0000
Folks.
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 ?
I am sure its a really simple trick, but I am obviously missing it.
Cheers
Mark Gilbert.
--
email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden