Hello i've just picked up sockets for the first time and im using this tutorial to learn the basic steps....
http://www.linuxhowtos.org/C_C++/socket.htm
Everything seems to work fine so far, but my problem is im unsure of how to get my hostname to connect to the server from the client. Is there a way i can output the hostname on the server side ?