When I want to access a device that is behind a NAT from the outside world I would go to the router and set up port forwarding.
Now my question why does it work without configuring the router? For example it is possible to do port forwarding without configuring/accessing the router by going to Control Panel -> View Network Connections
Once In there I can see my router:
If I right click -> properties -> settings -> select services tab -> Add then I am able to configure port forwarding as:
(My computer that is hosting a website inside my network has IP 192.168.0.5)
I know the basics of how a router works but I do not understand how this can be done without a helper server (tcp/udp punch holing) or vpn. What is my computer doing when I set up this option in order to enable port forwarding?
This can also be done on Linux this video (//youtu.be/bjsu5sFbMos) shows how.
asked Feb 26, 2018 at 19:05
1
The key is the UPNP //en.wikipedia.org/wiki/Universal_Plug_and_Play
The router must be UPNP capable, and UPNP service must enabled. If disabled, process in the question won't work.
The configuration done via UPNP commands instead router's web interface. But in both case, router gets configured, just the method different.
Now my question why does it work without configuring the router?
In this case the OS configure your router.
What is my computer doing when I set up this option in order to enable port forwarding?
OS sends UPNP messages to the router. These are network packets, if you interested in deeply, you can find official UPNP protocol descriptions.
You can imagine it as there's 2 port-forward database. One managed by router web interface (portforward, virtual servers, naming different), another managed by clients of the routers. But both stored on the router, and apply to the router rules.
answered Feb 26, 2018 at 19:49
uDevuDev
4793 silver badges6 bronze badges
I guess I have to read more about UPnP. Doing the following steps changes the following configuration on the router:
I did it the Linux way (//youtu.be/bjsu5sFbMos) and as soon as I run the command:
$ upnpc -d 192.168.0.150 80: 80 TCPOn my linux box then that entry disappiears on my router.
answered Feb 26, 2018 at 19:41
Tono NamTono Nam
6891 gold badge12 silver badges23 bronze badges
User Tag List
10-23-2008 #1
[Guide] Open ports WITHOUT router access!
Power of Illuminati is back here, for a moment! My friend helped me just discover how to open ports on your router, without using the router software (no passwords needed!).
You need two different things
- Windows
- Upnpc software
You can download the software from this site MiniUPnP download zone but here is a direct link to the program, as it's a long list.//miniupnp.tuxfamily.org/files/...2-20080925.zip
When you have downloaded and opened the .rar file, unzip it to the "C:\Documents and Settings\yourname" folder, you can put it anywhere, but then you must figure out the command abit... Strongly recomend the location I wrote.
Now you also would need your ip adress handy (What is my IP address? Show my IP address. IP Tracer & IP Locator.)
Now lets open DoS.
Start -> run -> write in 'cmd' and hit enter, a black window should open now.
Write this in that window to open port 80 for example, when your IP adress is 132.121.123.146.
Code:
upnpc-shared -a 132.121.123.146 80 80 TCPOfcourse you will edit the IP to YOUR ip and the port to the port you want to open.The cmd program should now start to work and write alot of stuff on the screen, but the port should acctualy now be open! This has worked for me, and only my father got the password for the router, what this program does, is that it goes directly to the access file on the router.
Great program in my opinion!
These ads disappear when you log in.
10-23-2008 #2
10-23-2008 #3
Woohoo u own
+rep x2EDIT: When my CD it's Ready xD
10-23-2008 #4
This is exactly what my friend in real life needs
+Rep10-23-2008 #5
Feel free to say if anything is wrong there, it has atleast worked for me on port 80 and 3306. Using this for webhosting + mysql databas only.
10-23-2008 #6
Member
hmm.. i tried this multiple times but cant seem to get it to work. i type in
upnpc-shared -a 68.98.79.154 80 80 TCP but cant seem to get it to work? anyone know why?10-24-2008 #7
k, try and rename the upnpc-shared file to only upnpc, then just wrote upnpc -a <ip> <port> <port> TCP, it works atleast for me. What OS are you running btw?
10-24-2008 #8
Member
Hmm OS? and i tried that but it doesn't work for some reason. i type in
upnpc -a 68.98.79.154 80 80 TCP . It says 'upnpc' is not recognized as an internal or external command, operable program or batch file.10-25-2008 #9
How to open with TCP & UDP?
and how to close port?
Last edited by Ollox; 10-25-2008 at 04:48 AM.
Lua knowledge [||||||||||]
10-25-2008 #10
OS is operative system,you need windows for this.
To open TCP, write TCP in the end, or UDP in the end.
-d instead of -a removes a port.
Here is a good wiki page
Port forwarding using UPnP – Wippies Wiki
Similar Threads
Replies: 2
Last Post: 02-03-2008, 07:24 PM
Replies: 8
Last Post: 01-28-2008, 09:05 PM
Replies: 5
Last Post: 01-04-2008, 03:19 PM
Replies: 5
Last Post: 10-29-2007, 04:30 AM
Replies: 4
Last Post: 09-12-2007, 09:41 AM