[ERROR] listen tcp 127.0.0.1:8991: bind: address already in use

I am trying to connect a Portenta H7 Lite Connected to the Arduino IoT Cloud on my MacBook Pro (M2 Max) using the latest version of the ArduinoCloudAgent. The agent can detect my H7, but fails when trying to add a new Device. I searched the logs and found this error: [GIN-debug] [ERROR] listen tcp 127.0.0.1:8991: bind: address already in use

I have tried killing the process that is using port 8991, but that seems to only be the CloudAgent. I have restarted. I have tried different cables. No luck.

Any ideas?

What does this screen look like on your system

Ok, create your thing and connect it to the net.


I have created two Things and seem to be able to do that without issue.



However, when I try to add the H7 Lite Connected (which it can detect just fine) I get stuck on step 1 which is when it tries to update the firmware. I have already updated to the latest firmware using the example sketch that the H7 comes with.

Is there a way to update or bypass the firmware update using the Command Line Interface that I also have access to?

I have tried this process with my current sketch running on the H7 as well as double clicking the RST button to place it into DFU mode.

I just tried the same procedure only I used a brand new Portenta H7 Lite Connected fresh out of the package. I placed it in DFU mode by double pressing the RST button. The Cloud app detected the H7, moved forward, asked me to name the device (this was great!), and asked me to determine a network connection mode. I selected WiFi because this is the ONLY means of connecting to the device which is NOT the USB-C cable. At that point, the Cloud app lost connectivity with the brand new H7 and I am now in the same death loop as with my other H7.

@rsbardsley are you using a usb c to usb c cable? did you try using a usb hub?

I have tried all combinations. I have a hub, I have a powered hub. I have all sorts of cables. I seem to have found that the only thing that works is to use Chrome, and my Apple C-A adapter connected to a GoPro A-C cable. This is not a real solution.

Can someone let me know if there are "specs" for what type of USB-C to USB-C cable is required? I assume something like a Thunderbolt 3.0 cable or something beyond a charge-only cable would stand a better chance of working.


Am I correct in thinking that this is the actual wiring of the onboard USB connector? This seems like the correct place to start. No?

Any update here?