Closed
Description
Summary
When I run the libp2p upnp example, I get the following message:
Gateway does not support UPnP
This is strange as my gateway most definitely does support upnp. I have tested it with miniupnpc and different other applications. Diving into the logs of an application that uses libp2p-upnp, I found this:
[2024-07-19T13:46:01.370996Z DEBUG libp2p_upnp::behaviour/Swarm::poll/NetworkBehaviour::poll] could not find gateway: Invalid response
Interestingly enough, the upnp port examples of rust-igd/igd-next work perfectly for me.
Expected behavior
I expected UPnP to function.
Actual behavior
UPnP did not function.
Relevant log output
[2024-07-19T13:46:01.370996Z DEBUG libp2p_upnp::behaviour/Swarm::poll/NetworkBehaviour::poll] could not find gateway: Invalid response
[2024-07-19T13:46:01.371020Z INFO sn_networking::event::swarm] UPnP event upnp_event=GatewayNotFound
[2024-07-19T13:46:01.371155Z DEBUG libp2p_upnp::behaviour/Swarm::poll] network gateway not found, UPnP port mapping of multiaddres discarded multiaddres=/ip4/192.168.0.207/udp/58142/quic-v1
Possible Solution
No response
Version
0.53.2
Would you like to work on fixing this bug ?
Maybe
Metadata
Metadata
Assignees
Labels
No labels