add network stream port and use network API port to set up the server