Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gentoo upnp errors, failed to map the external wan port. #385

Closed
frddbbbl opened this issue Jul 11, 2020 · 7 comments · Fixed by #390
Closed

Gentoo upnp errors, failed to map the external wan port. #385

frddbbbl opened this issue Jul 11, 2020 · 7 comments · Fixed by #390

Comments

@frddbbbl
Copy link

Hi, I am trying to connect nicotine on my laptop running gentoo. I have just installed upnpc and receive the following errors.
UPnp exertion: Failed to map the external WAN port: AddPortMapping(15000, 2416, 127.0.0.1) failed with code 718 (ConflictInMappingEntry) Failed to automate the creation of upnp port mapping rule

I have soul seek on my MacBook which uses upnp and works fine. upnp is enabled on my router. any idea what I am doing wrong? can give more info if nessicary.

@kiplingw
Copy link
Member

I am not a hundred percent sure, but that could arise when trying to map a port that's already bound to a different IP.

@frddbbbl
Copy link
Author

looking at my router gateway I don't see that port being used by another ip, it only has one port in use on 56822 on the Destination ip of a different device

@frddbbbl
Copy link
Author

I have tried a few different ports and all seem to return the same error( with a different port noted)

@mathiascode
Copy link
Member

What is the output of these commands in a terminal?
upnpc -l
upnpc -e Nicotine+ -a 127.0.0.1 2416 15000 TCP
upnpc -e Nicotine+ -a 127.0.0.1 2416 2416 TCP
upnpc -e Nicotine+ -r 2416 15000 TCP

@frddbbbl
Copy link
Author

upnpc -l returns:

upnpc : miniupnpc library test client, version 2.1.
 (c) 2005-2019 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.1.1:5000/tRCgWxh/ctl/IPConn
Local LAN ip address : 192.168.1.109
Connection Type : IP_Routed
Status : Connected, uptime=226317s, LastConnectionError : ERROR_NONE
  Time started : Sat Jul 11 21:06:33 2020
MaxBitRateDown : 39999000 bps (39.9 Mbps)   MaxBitRateUp 6936000 bps (6.9 Mbps)
ExternalIPAddress = 92.15.160.84
 i protocol exPort->inAddr:inPort description remoteHost leaseTime
 0 UDP 56822->192.168.1.111:56822 'Giraffic UDP on 192.168.1.111' '' 0
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)xx

upnpc -e Nicotine+ -a 127.0.0.1 2416 15000 TCP returns:

upnpc : miniupnpc library test client, version 2.1.
 (c) 2005-2019 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.1.1:5000/tRCgWxh/ctl/IPConn
Local LAN ip address : 192.168.1.109
ExternalIPAddress = 92.15.160.84
AddPortMapping(15000, 2416, 127.0.0.1) failed with code 718 (ConflictInMappingEntry)

upnpc -e Nicotine+ -a 127.0.0.1 2416 2416 TCP returns:

upnpc : miniupnpc library test client, version 2.1.
 (c) 2005-2019 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.1.1:5000/tRCgWxh/ctl/IPConn
Local LAN ip address : 192.168.1.109
ExternalIPAddress = 92.15.160.84
AddPortMapping(2416upnpc, 2416, 127.0.0.1) failed with code 718 (ConflictInMappingEntry)

and upnpc -e Nicotine+ -r 2416 15000 TCP returns:

upnpc : miniupnpc library test client, version 2.1.
 (c) 2005-2019 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.1.1:5000/tRCgWxh/ctl/IPConn
Local LAN ip address : 192.168.1.109
ExternalIPAddress = 92.15.160.84
InternalIP:Port = 192.168.1.109:2416
external 92.15.160.84:15000 TCP is redirected to internal 192.168.1.109:2416 (duration=0)

@mathiascode
Copy link
Member

Seems like Nicotine+ uses the wrong local IP address.

Can you delete the existing entries? upnpc -N 0 15000 tcp
And try this command? upnpc -e Nicotine+ -a 192.168.1.109 2416 15000 TCP

@mathiascode
Copy link
Member

This branch should fix the issue:
git clone -b upnplan https://github.com/mathiascode/nicotine-plus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants