I have a server and client program. The server sends its IP address to a master web server. The client then reads this list and displays the IP addresses in a listbox. The client can then select a server and connect to it. But i also want to display the server's host name next to the IP address in the client listbox.
You already have the local hostname, it was returned to you in Line 2 of this code snip. You should send it the same way you are sending the IP. It would help if you posted the code for "WebPost".