output to server

connects to server and sends messages