Add fallback when missing SERVER_PORT