pass the webserver port from main()