only open tcp-server when a port is provided