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.