Made the server port more flexible.