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 

UPnP forwarding fails with Linksys AM300
Goto page 1, 2  Next
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Thu Apr 08, 2010 9:29 am    Post subject: UPnP forwarding fails with Linksys AM300 Reply with quote

Hello, I was using transmission (which uses miniupnp) with my new Linksys AM300 modem (firmware: 1.19.04). However it fails to open the port. I opened a bug for Transmission, however they closed it and told me to come here. Here is the message log output:

Code:

2010-04-08 00:20:09 +1000 upnp.c:105 [Info] Port Forwarding (UPnP): Found Internet Gateway Device "http://192.168.1.1:80/upnp/control?WANIPConnection"
2010-04-08 00:20:09 +1000 upnp.c:107 [Info] Port Forwarding (UPnP): Local Address is "192.168.1.10"
2010-04-08 00:20:09 +1000 upnp.c:194 [Info] Port Forwarding (UPnP): Port forwarding through "http://192.168.1.1:80/upnp/control?WANIPConnection", service "urn:schemas-upnp-org:service:WANIPConnection:1".  (local address: 192.168.1.10:51788)
2010-04-08 00:20:09 +1000 upnp.c:206 [Debug] Port Forwarding (UPnP): Port forwarding failed with error 401 (errno 0 - Unknown error: 0)
2010-04-08 00:20:09 +1000 upnp.c:209 [Debug] Port Forwarding (UPnP): If your router supports UPnP, please make sure UPnP is enabled!
2010-04-08 00:20:09 +1000 port-forwarding.c:87 [Info] Port Forwarding: State changed from "Not forwarded" to "Starting"


If there is anything I can do to help let me know! I would love to get this fixed ASAP so I can continue to use transmission properly! Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Thu Apr 08, 2010 12:46 pm    Post subject: Reply with quote

code 401 stands for "invalid action"...

could you test with the miniupnpc command line client ???
upnpc -s
upnpc -l
upnpc -r 12345 TCP
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Thu Apr 08, 2010 12:55 pm    Post subject: Reply with quote

I'm afraid you're going to have to help me a little here... Smile

Is there a mac version i can use?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Thu Apr 08, 2010 5:30 pm    Post subject: Reply with quote

jah wrote:
I'm afraid you're going to have to help me a little here... Smile

Is there a mac version i can use?

Yep.
Download miniupnpc-1.4.whatever.tar.gz from the download page.
Then launch a terminal.
tar xzf miniupnpc-1.4.whatever.tar.gz
cd miniupnpc-1.4.whatever
make
./upnpc-static is the executable
You may need to install xcode in order to have make/gcc and all the compilation tools available.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Apr 13, 2010 8:53 am    Post subject: Reply with quote

have a look at this version : miniupnpc-1.4.20100412.tar.gz

see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=633
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Tue Apr 13, 2010 1:06 pm    Post subject: Reply with quote

Ok i installed xcode and tried what you said with that download...

Code:

Macintosh-10:miniupnpc-1.4.20100412 #######$ ./upnpc-static -s
upnpc : miniupnpc library test client. (c) 2006-2010 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.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

 desc: http://192.168.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: uuid:23912A92-D8C4-AAB0-B982-001E5883B5C3

Found valid IGD : http://192.168.0.1:49152/upnpdev.cgi?service=WANIPConn1
Local LAN ip address : 192.168.0.104
Connection Type : IP_Routed
Status : Connected, uptime=651s, LastConnectionError : ERROR_NONE
  Time started : Tue Apr 13 22:46:07 2010
MaxBitRateDown : 100000000 bps   MaxBitRateUp 100000000 bps
ExternalIPAddress = ###.19.37.###
Bytes:   Sent: 17585641   Recv: 187346433
Packets: Sent:   126493   Recv:   205414



Code:

Macintosh-10:miniupnpc-1.4.20100412 #######$ ./upnpc-static -l
upnpc : miniupnpc library test client. (c) 2006-2010 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.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

 desc: http://192.168.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: uuid:23912A92-D8C4-AAB0-B982-001E5883B5C3

Found valid IGD : http://192.168.0.1:49152/upnpdev.cgi?service=WANIPConn1
Local LAN ip address : 192.168.0.104
Connection Type : IP_Routed
Status : Connected, uptime=868s, LastConnectionError : ERROR_NONE
  Time started : Tue Apr 13 22:46:07 2010
MaxBitRateDown : 100000000 bps   MaxBitRateUp 100000000 bps
ExternalIPAddress = ###.19.37.###
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)


Code:

Macintosh-10:miniupnpc-1.4.20100412 ######$ ./upnpc-static -r 12345 TCP
upnpc : miniupnpc library test client. (c) 2006-2010 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.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

 desc: http://192.168.0.1:49152/xmldoc/InternetGatewayDevice.xml
 st: uuid:23912A92-D8C4-AAB0-B982-001E5883B5C3

Found valid IGD : http://192.168.0.1:49152/upnpdev.cgi?service=WANIPConn1
Local LAN ip address : 192.168.0.104
ExternalIPAddress = ###.19.37.###
InternalIP:Port = 192.168.0.104:12345
external ###.19.37.###:12345 TCP is redirected to internal 192.168.0.104:12345


I don't really understand all this output that well so let me know if I need to do anything else! Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Apr 13, 2010 1:11 pm    Post subject: Reply with quote

well all that output tell us that miniupnpc version 1.4.20100412 WORKS with your router !
I guess older version would not work.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Tue Apr 13, 2010 1:32 pm    Post subject: Reply with quote

woohoo! Smile thanks for your help Smile

Now how do i get Transmission to use this version of miniupnp??
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Apr 13, 2010 1:47 pm    Post subject: Reply with quote

just wait...
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Tue Apr 13, 2010 1:51 pm    Post subject: Reply with quote

I just found out they already added it to the nightly version! So I didn't even need to do all that testing! oh well Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Wed Apr 14, 2010 10:51 am    Post subject: Reply with quote

jah wrote:
I just found out they already added it to the nightly version! So I didn't even need to do all that testing! oh well Smile

You helped me to indentify and solve the problem !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Tue Apr 27, 2010 11:40 am    Post subject: Reply with quote

I have an update. It is not working again Sad Maybe I spoke too soon...

Code:

Macintosh-10:miniupnpc-1.4.20100412 ######$ ./upnpc-static -s
upnpc : miniupnpc library test client. (c) 2006-2010 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:80/igd.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found a (not connected?) IGD : http://192.168.1.1:80/upnp/control?WANPPPConnection
Trying to continue anyway
Local LAN ip address : 192.168.1.10
GetConnectionTypeInfo failed.
Status : , uptime=1s, LastConnectionError :
  Time started : Tue Apr 27 21:36:08 2010
MaxBitRateDown : 0 bps   MaxBitRateUp 0 bps
GetExternalIPAddress() returned 401
GetExternalIPAddress failed.
Bytes:   Sent:        0   Recv:        0
Packets: Sent:        0   Recv:        0


Code:

Macintosh-10:miniupnpc-1.4.20100412 #######$ ./upnpc-static -l
upnpc : miniupnpc library test client. (c) 2006-2010 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:80/igd.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found a (not connected?) IGD : http://192.168.1.1:80/upnp/control?WANPPPConnection
Trying to continue anyway
Local LAN ip address : 192.168.1.10
GetConnectionTypeInfo failed.
Status : , uptime=1s, LastConnectionError :
  Time started : Tue Apr 27 21:38:31 2010
MaxBitRateDown : 0 bps   MaxBitRateUp 0 bps
GetExternalIPAddress() returned 401
GetExternalIPAddress failed.
GetGenericPortMappingEntry() returned 401 (Invalid Action)


Code:

Macintosh-10:miniupnpc-1.4.20100412 ######$ ./upnpc-static -r 54000 TCP
upnpc : miniupnpc library test client. (c) 2006-2010 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:80/igd.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found a (not connected?) IGD : http://192.168.1.1:80/upnp/control?WANPPPConnection
Trying to continue anyway
Local LAN ip address : 192.168.1.10
GetExternalIPAddress failed.
AddPortMapping(54000, 54000, 192.168.1.10) failed with code 401 (Invalid Action)
GetSpecificPortMappingEntry() failed with code 401 (Invalid Action)
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Apr 27, 2010 6:02 pm    Post subject: Reply with quote

looks like your router is reporting to be NOT connected to the internet !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
jah



Joined: 08 Apr 2010
Posts: 8

PostPosted: Wed Apr 28, 2010 12:40 pm    Post subject: Reply with quote

that is weird, because I am definitely connected to the net (i am typing this message right now).

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


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Wed Apr 28, 2010 5:31 pm    Post subject: Reply with quote

jah wrote:
that is weird, because I am definitely connected to the net (i am typing this message right now).

Can you help? Smile

yep this is weird. because if the same version of miniupnpc works one day and not the day after, I cant do anything ! Try to understand what changed.
Maybe you need to reboot your router every 3 days or something.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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.