View previous topic :: View next topic |
Author |
Message |
Discostar
Joined: 29 Aug 2010 Posts: 3
|
Posted: Sun Aug 29, 2010 5:10 am Post subject: Trouble with Belkin Router |
|
|
I'm trying to setup a game server, but my router has a bug which blocks all UDP traffic even if port forwarded or even DMZed. However, UPnP does work. So I am trying to port forward manually using upnpc.
Tried both the 0511 and 0609 builds. Both compiled + installed just fine. minissdpd also installed fine.
Running upnpc -l gives me the following output:
Code: | List of UPNP devices found on the network :
desc: http://192.168.2.1:80/igd.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found a (not connected?) IGD : http://192.168.2.1:80/upnp/control?WANPPPConnection
Trying to continue anyway
Local LAN ip address : 192.168.2.101
GetConnectionTypeInfo failed.
Status : , uptime=2991498s, LastConnectionError :
Time started : Sun Jul 25 05:47:50 2010
MaxBitRateDown : 0 bps MaxBitRateUp 0 bps
GetExternalIPAddress() returned 401
GetExternalIPAddress failed.
GetGenericPortMappingEntry() returned 401 (Invalid Action) |
To me the problem lines seem to be the 'Found a (not connected?) IGD' (what does not connected? imply?) and the max bitrate up/down being 0 and external IP returning an error.
Server is on a fixed IP and can connect to internet. In general I know UPnP works when I've used it with Bittorrent clients. Lastly, upnpc on my windows machine gives the same error.
Any ideas? Thanks in advance! |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sun Aug 29, 2010 9:56 am Post subject: |
|
|
(not connected?) is displayed when miniupnpc failed to get the connection status.
If some other software works well with UPnP, it looks like miniupnpc has a bug... What is the exact model and version of your router ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
Discostar
Joined: 29 Aug 2010 Posts: 3
|
Posted: Sun Aug 29, 2010 10:09 pm Post subject: |
|
|
Name: Belkin Surf
Model: F7D2301 v1
Firmware (if applicable): 1.00.16
As you can tell from the UDP behavior of the router it's firmware is all kinds of wrong. I would not be surprised if it is using some obscure standard. *shrug*
I know that programs like ktorrent and utorrent do work fine with upnp though, so I suppose it can't be something too out of the ordinary.
Just to make sure I understand how this works, I am not required to put upnpd on the router somehow am I? Just using the client to forward should be sufficient?
Thanks for the quick reply! |
|
Back to top |
|
|
Discostar
Joined: 29 Aug 2010 Posts: 3
|
Posted: Wed Sep 01, 2010 3:46 am Post subject: |
|
|
Ok I recompiled with debug on (I think. I just changed the cflag's dndebug to ddebug), which gives me this output, if it helps:
Code: | List of UPNP devices found on the network :
desc: http://192.168.2.1:80/igd.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
address miniwget : 192.168.2.101
5280 bytes read
urlbase = ''
WAN Device (Common interface config) :
serviceType = 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'
controlURL = '/upnp/control?WANCommonInterfaceConfig'
eventSubURL = '/upnp/event?WANCommonInterfaceConfig'
SCPDURL = '/igd_wcic.xml'
WAN Connection Device (IP or PPP Connection):
servicetype = 'urn:schemas-upnp-org:service:WANPPPConnection:1'
controlURL = '/upnp/control?WANPPPConnection'
eventSubURL = '/upnp/event?WANPPPConnection'
SCPDURL = '/igd_wpc.xml'
secondary WAN Connection Device (IP or PPP Connection):
servicetype = 'urn:schemas-upnp-org:service:WANIPConnection:1'
controlURL = '/upnp/control?WANIPConnection'
eventSubURL = '/upnp/event?WANIPConnection'
SCPDURL = '/igd_wic.xml'
urls->ipcondescURL='http://192.168.2.1:80/igd_wpc.xml' 33 n1=43
urls->controlURL='http://192.168.2.1:80/upnp/control?WANPPPConnection' 51 n2=61
urls->controlURL_CIF='http://192.168.2.1:80/upnp/control?WANCommonInterfaceConfig' 59 n3=69
SOAP request : headersize=319 bodysize=272
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
UPNPIGD_IsConnected(http://192.168.2.1:80/upnp/control?WANPPPConnection) = 0
SOAP request : headersize=319 bodysize=272
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
We tried urn:schemas-upnp-org:service:WANPPPConnection:1, now we try urn:schemas-upnp-org:service:WANIPConnection:1 !
urls->ipcondescURL='http://192.168.2.1:80/igd_wic.xml' 33 n1=43
urls->controlURL='http://192.168.2.1:80/upnp/control?WANIPConnection' 50 n2=60
urls->controlURL_CIF='http://192.168.2.1:80/upnp/control?WANCommonInterfaceConfig' 59 n3=69
SOAP request : headersize=317 bodysize=271
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
UPNPIGD_IsConnected(http://192.168.2.1:80/upnp/control?WANIPConnection) = 0
SOAP request : headersize=317 bodysize=271
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
address miniwget : 192.168.2.101
5280 bytes read
urlbase = ''
WAN Device (Common interface config) :
serviceType = 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'
controlURL = '/upnp/control?WANCommonInterfaceConfig'
eventSubURL = '/upnp/event?WANCommonInterfaceConfig'
SCPDURL = '/igd_wcic.xml'
WAN Connection Device (IP or PPP Connection):
servicetype = 'urn:schemas-upnp-org:service:WANPPPConnection:1'
controlURL = '/upnp/control?WANPPPConnection'
eventSubURL = '/upnp/event?WANPPPConnection'
SCPDURL = '/igd_wpc.xml'
secondary WAN Connection Device (IP or PPP Connection):
servicetype = 'urn:schemas-upnp-org:service:WANIPConnection:1'
controlURL = '/upnp/control?WANIPConnection'
eventSubURL = '/upnp/event?WANIPConnection'
SCPDURL = '/igd_wic.xml'
urls->ipcondescURL='http://192.168.2.1:80/igd_wpc.xml' 33 n1=43
urls->controlURL='http://192.168.2.1:80/upnp/control?WANPPPConnection' 51 n2=61
urls->controlURL_CIF='http://192.168.2.1:80/upnp/control?WANCommonInterfaceConfig' 59 n3=69
SOAP request : headersize=319 bodysize=272
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
UPNPIGD_IsConnected(http://192.168.2.1:80/upnp/control?WANPPPConnection) = 0
Found a (not connected?) IGD : http://192.168.2.1:80/upnp/control?WANPPPConnection
Trying to continue anyway
Local LAN ip address : 192.168.2.101
SOAP request : headersize=327 bodysize=288
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
GetConnectionTypeInfo failed.
SOAP request : headersize=319 bodysize=272
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
Status : , uptime=3217799116s, LastConnectionError :
Time started : Sat Sep 12 17:36:57 1908
SOAP request : headersize=345 bodysize=300
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
MaxBitRateDown : 0 bps MaxBitRateUp 0 bps
SOAP request : headersize=326 bodysize=286
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
GetExternalIPAddress() returned 401
GetExternalIPAddress failed.
SOAP request : headersize=339 bodysize=288
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
SOAP request : headersize=343 bodysize=296
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
SOAP request : headersize=341 bodysize=292
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
SOAP request : headersize=345 bodysize=300
received n=582bytes bufsize=582 ContLen=423 HeadLen=159
Bytes: Sent: 0 Recv: 0
Packets: Sent: 0 Recv: 0 |
Looking at this now, it's trying to connect to WANPPPConeection, but I am not using PPP; coudl that be the problem? Looks like it should be using WANIPConnection, or maybe WANCommonInterfaceConfig? |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Jan 03, 2011 4:36 pm Post subject: |
|
|
I made some changes/fixes in that code recently, so maybe it will work with miniupnpc-1.5. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|