Posted by: Sleepless December 2, 2008
how to write code in C to read client IP (browser) address
Login in to Rate this Post:     0       ?        
Yes , gethostbyname( ) does it.

But werent you looking for Client's IP Address? And if you are coding for a Proxy Server, and all you can do is code in that server? I'd suggest you use connection request headers from the clients to find its IP Address.
Read Full Discussion Thread for this article