miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IGD not found

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP
View previous topic :: View next topic  
Author Message
Jordan



Joined: 23 Sep 2016
Posts: 2

PostPosted: Fri Sep 23, 2016 10:24 pm    Post subject: IGD not found Reply with quote

I get this error.

Code:
Socket error: recv, 10054
No valid UPNP Internet Gateway Device found.

Help?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Sep 27, 2016 8:53 pm    Post subject: Reply with quote

which OS ? which software ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Jordan



Joined: 23 Sep 2016
Posts: 2

PostPosted: Sat Oct 01, 2016 10:08 pm    Post subject: Reply with quote

I rebooted my router and it is working a bit better now.

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

Found valid IGD : http://192.168.1.1:49152/upnp/control/WANPPPConnection0
Local LAN ip address : 192.168.1.128
Connection Type : IP_Routed
Status : Connected, uptime=1267s, LastConnectionError : ERROR_NONE
  Time started : Sat Oct 01 14:42:05 2016
MaxBitRateDown : 100000000 bps (100.0 Mbps)   MaxBitRateUp 100000000 bps (100.0 Mbps)
ExternalIPAddress = 24.69.84.3
Bytes:   Sent:  7454409 Recv: 33175305
Packets: Sent:    31119 Recv:    41380


But is this OK?

Code:
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)


The router is a Cisco EA3500.

I am using the latest download for Windows from the website.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Oct 03, 2016 8:06 am    Post subject: Reply with quote

So everything is working fine.

GetGenericPortMappingEntry() returns error 713 (SpecifiedArrayIndexInvalid)
when finished to iterate Port Mappings.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
val



Joined: 12 Jun 2018
Posts: 5

PostPosted: Wed Jun 13, 2018 12:02 am    Post subject: Reply with quote

hi, miniupnp, I have a similar problem. I have a Dlink router, that obviously uses miniupnpd; I enabled upnp on it, rebooted (many times). but utorrent cannot get incoming connections, so I cannot upload files, in its logs there is a lot of "disconnect" messages about targets "actively refused connection" and "upnp unable to get external IP".
I downloaded your client, and did the check. It writes:
Code:

Socket error: bind, 10049
No IGD UPnP Device found on the network !

could you help?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Jun 13, 2018 7:52 am    Post subject: Reply with quote

val wrote:
hi, miniupnp, I have a similar problem. I have a Dlink router, that obviously uses miniupnpd; I enabled upnp on it, rebooted (many times). but utorrent cannot get incoming connections, so I cannot upload files, in its logs there is a lot of "disconnect" messages about targets "actively refused connection" and "upnp unable to get external IP".
I downloaded your client, and did the check. It writes:
Code:

Socket error: bind, 10049
No IGD UPnP Device found on the network !

could you help?

How can you say it "obviously uses miniupnpd" ?
the miniupnpc client cannot bind the socket, so it cannot work... What's your OS ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
val



Joined: 12 Jun 2018
Posts: 5

PostPosted: Wed Jun 13, 2018 12:54 pm    Post subject: Reply with quote

miniupnp wrote:

How can you say it "obviously uses miniupnpd" ?

because of rootDesc.xml of that box: Smile
Code:

<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice</friendlyName>
<manufacturer>MiniUPnP</manufacturer>
<manufacturerURL>http://miniupnp.free.fr/</manufacturerURL>
<modelDescription>MiniUPnP daemon</modelDescription>
<modelName>MiniUPnPd</modelName>
<modelNumber>20110930</modelNumber>
<modelURL>http://miniupnp.free.fr/</modelURL>
<serialNumber>00000000</serialNumber>
<UDN>uuid:00000000-6272-0000-0000-627200000000</UDN>
<UPC>MINIUPNPD</UPC>

Quote:

the miniupnpc client cannot bind the socket, so it cannot work... What's your OS ?

it shows "bind error" only when using -m gatewayaddr in addition to the -s option. with just a -s option, it says "no igd device found".

my host OS is WinXP, on the router, apparently is some kind of debian.)

Tell me yet one thing please, because I don't know how UPnP works.
This gateway doesn't have a public IP, it serves as a gateway between the LAN in my appartment and the ISP's LAN. Only the next gateway on that LAN has a public IP. So, we have a chain of NAT. How does UPnP work in this case? My torrent client asks my gateway (A) to map some ports, for incoming connections too. But the same thing should propagate to the next gateway (B), the one with the public address. Right? Is it handled by UPnP/IGD protocols? I have no access to the gateway B, but my ISP shouldn't deny using torrent. Thank you for your answers. Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Jun 13, 2018 1:55 pm    Post subject: Reply with quote

UPNP is not designed to work in network setups such as the one you describe.
You'd better connect you machine directly to your ISP network.

However, if your dlink router provides UPNP IGD servicces, the miniupnp client should detect it
Maybe you have several network interfaces on your machine. Miniupnpc is supposed to pick the one with default route. yo ucan use the -m option to force the network interface. (-m option argument is the network interface address, not the gateway address !)

also, I you know the url of the UPNP XML Root description, you can use the -u option
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
val



Joined: 12 Jun 2018
Posts: 5

PostPosted: Wed Jun 13, 2018 5:37 pm    Post subject: Reply with quote

miniupnp wrote:

UPNP is not designed to work in network setups such as the one you describe.
You'd better connect you machine directly to your ISP network.

I wish I could.

I want to just clarify, maybe I told it wrong. I have LAN in my appartment say 192.168.128.0. The gateway (A) on it is connected to the LAN of my ISP. Say 10.97.51.0. Its address there is 10.97.51.45. Finally, the gateway (B) on this LAN (10.97.51.1) has a public IP.
So, if I enable UPnP on the gateway A, it still won't work because UPnP has no means to "propagate" port mapping to the gateway B, even if the latter has UPnP enabled?
Quote:

However, if your dlink router provides UPNP IGD servicces, the miniupnp client should detect it
Maybe you have several network interfaces on your machine. Miniupnpc is supposed to pick the one with default route. yo ucan use the -m option to force the network interface. (-m option argument is the network interface address, not the gateway address !)

also, I you know the url of the UPNP XML Root description, you can use the -u option

If I supply the IP of the host's network interface (it's the only one on this machine), it writes "no igd device found". If I supply -u option it writes:
Code:

E:\path\to\Upnpc>upnpc-static -u http://192.168.128.1/rootDesc.xml -s
upnpc : miniupnpc library test client, version 1.9.
 (c) 2005-2014 Thomas Bernard.
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Found valid IGD : http://192.168.128.1/
Local LAN ip address : 192.168.128.2
GetConnectionTypeInfo failed.
GetStatusInfo failed.
  Time started : Wed Jun 13 20:02:41 2018
GetLinkLayerMaxBitRates failed.
GetExternalIPAddress failed. (errorcode=-1)
Bytes:   Sent:        0 Recv:        0
Packets: Sent:        0 Recv:        0

It doesn't look like the enabled UPnP? But I am sure that I enabled it on the gateway. How do you see, what these failures and error code tell about? thank you. Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Jun 13, 2018 6:45 pm    Post subject: Reply with quote

http://192.168.128.1/rootDesc.xml is a strange address for root description, usually the port is NOT 80 the standard HTTP port.
use Wireshark or another network analyzer to check that your router is boradcasting SSDP packets (UDP port 1900)
https://wiki.wireshark.org/SSDP
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
val



Joined: 12 Jun 2018
Posts: 5

PostPosted: Wed Jun 13, 2018 7:10 pm    Post subject: Reply with quote

miniupnp wrote:
http://192.168.128.1/rootDesc.xml is a strange address for root description, usually the port is NOT 80 the standard HTTP port.
use Wireshark or another network analyzer to check that your router is boradcasting SSDP packets (UDP port 1900)
https://wiki.wireshark.org/SSDP

I looked into utorrent log to see the port used and after using that port, it shows:
Code:

E:\path\to\Upnpc>upnpc-static -u http://192.168.128.1:59214/rootDesc.xml -s
upnpc : miniupnpc library test client, version 1.9.
 (c) 2005-2014 Thomas Bernard.
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Found valid IGD : http://192.168.128.1:59214/ctl/IPConn
Local LAN ip address : 192.168.128.2
Connection Type : IP_Routed
Status : Disconnected, uptime=66779s, LastConnectionError : ERROR_NONE
  Time started : Wed Jun 13 03:19:37 2018
MaxBitRateDown : 0 bps   MaxBitRateUp 0 bps
ExternalIPAddress = 0.0.0.0
Bytes:   Sent:        0 Recv:        0
Packets: Sent:        0 Recv:        0

So, basically it says "everything is OK" except UPnP cannot work this way, right? I mean will it only work if this gateway (igd) has a public IP?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Jun 13, 2018 7:59 pm    Post subject: Reply with quote

yes
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
val



Joined: 12 Jun 2018
Posts: 5

PostPosted: Wed Jun 13, 2018 8:18 pm    Post subject: Reply with quote

miniupnp wrote:
yes

thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.