fix api/ws port problem