Unbroke server

Fixed issues with server communication. Need to test on multiple devices
on the same server.