send data to the correct port and use a newline