strip the space at the end of  server address
use WSAAddressToString on win32 instead of inet_ntop