add 'port' option for the newtork API (default to 4242)