Added compliation for server with port 0