Added TCP server mode