init/close server connection (sending position)