Fix local script not working without host port set