Fix web server and add port option