add missing require
allow specified tcp host and port for server
added example using tcp and specified host