fixed port number in server thread, changed num bytes sent
Merge commit 'e5ac29b94740628aef8ecddea0a9dabd424b5b05' into server_thread