get local port when nginx is not involved