MicroXRCE Agent does not connect

Hey, Me and my friend were using the PX4 autopilot with ROS2 for a project, and initially we were getting each others topics when running ros2 topic list , so we then added ROS_LOCALHOST_ONLY=1 in our zshrc files. But recently, our MicroXRCE agent is giving small issues:

  • Running make px4_sitl gazebo-classic , the MicroXRCE agent connects, but running ros2 topic list does not give any topics
  • Running ./Tools/simulation/gazebo-classic/sitl_multiple_run.sh -m iris -n 1 , the MicroXRCE agent simply does not connect, and so we dont get topics

May I know any possible reason for this problem? Thanks