server now returns its full url
convert struct to standard json naming, server now sends its ip and port instead of figuring it out on the client