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 

Why are my ports mapped using MiniUPNPC not actually mapped?

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



Joined: 06 Mar 2016
Posts: 2

PostPosted: Sun Mar 06, 2016 11:01 pm    Post subject: Why are my ports mapped using MiniUPNPC not actually mapped? Reply with quote

Router: SBG6580
ISP: Comcast
MiniUPNPC Version: 1.9
OS: Mac OS X 10.11

Hi!

I am having trouble debugging why mapping ports using miniupnpc is not working even though the miniupnpc tool says that it worked.

Context
I'm trying to open up external port 80 with internal port 8080.

What I did
I added the port mapping using
Code:

upnpc -r 8080 80 TCP


And then viewed the list of all mappings using
Code:

Oli$ upnpc -l
upnpc : miniupnpc library test client, version 1.9.
 (c) 2005-2015 Thomas Bernard.
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.0.1:80/RootDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.0.1:80/WANIPConnection
Local LAN ip address : 192.168.0.2
Connection Type : IP_Routed
Status : Connected, uptime=308157s, LastConnectionError : ERROR_NONE
  Time started : Thu Mar  3 01:12:31 2016
MaxBitRateDown : 1000000000 bps (1000.0 Mbps)   MaxBitRateUp 1000000000 bps (1000.0 Mbps)
ExternalIPAddress = MY_EXTERNAL_IP
 i protocol exPort->inAddr:inPort description remoteHost leaseTime
 0 TCP    80->192.168.0.2:8080  'libminiupnpc' '' 0
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIn


However when I test to see if the port is open using
Code:
telnet MY_EXTERNAL_IP 80

Telnet says the port is not open Sad

Things I made sure
On my Routers WEB UI I have enabled UPnP.
Also, Port Forwarding is definitely possible because if I use the router's Web UI to explicitly map the port it works (telnet confirms the port is open that way).

My theory
One thing I have noticed is that the remoteHost is reported to be ''. When doing a port forward via my routers UI I have to specify that the remoteHost is 0.0.0.0.

Is that what the issue is?

Any suggestions/tips/help would be greatly appreciated! Thanks!
Oli[/code]
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Mon Mar 07, 2016 11:31 am    Post subject: Re: Why are my ports mapped using MiniUPNPC not actually map Reply with quote

ozzyoli wrote:

However when I test to see if the port is open using
Code:
telnet MY_EXTERNAL_IP 80

Telnet says the port is not open Sad


From what machine are your testing connection ? Your router probably doesn't redirect the port for packet coming from the LAN, only from the WAN. (port mapping rules are very propably configured ta apply on only one network interface).
So the test must be done from a machine NOT ON YOUR LAN.
see http://www.yougetsignal.com/tools/open-ports/
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
ozzyoli



Joined: 06 Mar 2016
Posts: 2

PostPosted: Tue Mar 08, 2016 3:41 pm    Post subject: Reply with quote

Hi,

I used both telnet on my LAN and a public port checker site on the WAN to check and both said the port was closed.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Tue Mar 08, 2016 3:53 pm    Post subject: Reply with quote

miniupnpc only send commands to your router, it cannot report if your router is not properly setting the port mappings.
Please check your router using other UPnP clients
_________________
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: 1452

PostPosted: Tue Mar 08, 2016 3:56 pm    Post subject: Reply with quote

anyway I think it can cause problems to map port 80, I guess the router is using it for something else.
Please test with a random high port (> 1024)
_________________
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 -> 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.