Update tcp.js

Server function need host parameter.