Port forwarding using upnpc

by Fabiotk   Last Updated April 16, 2018 12:01 PM

I want to open a port on my pc to the internet in order to run a server. My router is at 192.168.0.1(1) and when I connect to it via browser, it shows that its WAN IP is 10.1.1.21 and its gateway 10.1.1.1(2). Basically, my router (1) is plugged in another router (2) which is one common for the block where I live and connects other apartments, etc. So the question is, how can I open a port to the internet?

I tried running upnpc:

upnpc -a 192.168.0.102 10000 10000 TCP

and it outputs:

Local LAN ip address : 192.168.0.102
ExternalIPAddress = 10.1.1.21
InternalIP:Port = 192.168.0.102:10000
external 10.1.1.21:10000 TCP is redirected to internal 192.168.0.102:10000 (duration=0)

and I still can't connect to the port 10000 over the internet. How can I forward this port?

Oh, and if you say that it is not possible because of this second router (2), then it raises me another question: then how can my torrent client (deluge) seed content over the internet? if deluge can, so there must be a way to also put another program to deliver content to the internet I guess. Thank you in advance



Related Questions




No idea what is listening on port 80 in OS X

Updated May 19, 2017 19:01 PM

Nmap shows port 1720 open on my ip

Updated August 11, 2015 17:00 PM

Access wamp localhost from internet

Updated November 05, 2015 07:00 AM