Set server ip for networking connection

Also added a touch of error handling for failed connections/disconnects.