This is what we need! Most sources explain concepts like this with a Networking context and so as developers not only does it not click, but we have no idea what relevance it has to the applications we develop. You explain conceptually and even make a point to show an example with a real world app while omitting "unnecessary" networking terms. And if we wanted to expand to lower level networking aspects we have a better chance with that now as well ..
This channel is a treasure trove. Finally getting to understand misc. stuff I just heard thrown around by network or sys-admins. Thanks, Hussein. And the humor makes everything even better!
I think there was only one concept missing: the loopback interface of the router. On some routers when you request the router's public ip it will not respond: you need a loopback.
Of course you can , this is a feature in the router. The ip range has nothing to do. Check your router admin page their should be a port forward option under firewall ... if not you can always do reverse tunneling check the video we made here ruclips.net/video/iR4jLbG9KXw/видео.html
10.0.0.0 - 10.255.255.255 are not public IPs. This range is private and is the range your router uses to assigns IPs to devices on your local network. Your public WAN IP will be some other address.
How do I change my IP address from private to public? I have the Netgear 4G LTE modem LM1200, so I can run a node online using my raspberry Pi 3 B+ running through a Deeper network Mini device
By far the most pristine explanation on this topic. And at last someone with enough balls to show the public IP on a tutorial because when you blur things out on a tutorial it gets confusing, for someone who still doesnt fully understand the topic!!
How might I do this without adding the port 8080? Ultimately using a domain name which points to my public IP and then to the web server I have on my LAN? Thanks in advance.
Hi Sir i have tomcat running at 8080 on a windows pc ,,, i did port forwarding for this windowsPCIP and 8080 port ,and its not working from 4g net of my phone ,,,,what i need to do extra,,,,thanks
hello mate..how to port forwarding for games on steam..i’m trying so many times doing setup to run dedicated server..but it’s won’t work..maybe i’m doing wrong…i don’t understand about wan/router..where should i put the number for port 27015(steam game)..
Also at 7:59 I think you only specified the ports that the router is meant to forward to HusseinMac, but not the port that it would go to on HusseinMac. Since you used 8080, is it meant to be assumed that it's at 8080 on HusseinMac too?
Hello! I did all the steps and my friend can connect to my private port so it works, but I tried to test it on my own with my very same computer like you did and it's not working. It says connection refused. Why is that?
I've opened my ports in P.forwarding but still says not open when I check on a website to see open ports. Is there a reason for that... internally it's open
This will work only in one case : if your router's outside interface is assigned a public address. Otherwise, if you're assigned a private address, port forwarding will never work.
what if my app relies on a web socket server to make a functioning chat app? even port forwarding it does not make it work. i can reach the app but no using the socket via it
hey, Hussain does the real server in mnc uses port forwarding or any other technique can u plz............................................................................................................................................... explain the real industries model big Fan of U
I can't access my server from local network, using public IP address. However, I can access it from the internet using public IP address, And I can also access it from local network, using private IP address. Any idea? Thanks
So websites can only see your computer IP address and router Ip? Can they also see your Mac addresses and if so can they see the Mac address of your Computer, Router and Modem?
no it isn't, all someone can do is find out your city with your public IP, and nothing more than that (unless they are the government and have authority to demand data from your ISP)
I have a VM (running via VirtualBox on my local) configured with a bridge network on my local machine. On my host machine (or local environment), I secured copied (via terminal command scp) a file to the VM via 192.168.1.#. did that event ever go to the router or did all the networking on that particular request remain entirely within my local machine?
Fantastic question and beyond my knowledge to be honest. But I will make a guess. If you bridged your VM that means it is now part of the same network your physical machine is on, that also means it is going to get a unique IP address usually from the router DHCP and a unique mac address. So my answer is yes that command does go through your router and your physical machine will answer the ARP request for both the VM and itself Hope that helps but keep those challenging questions coming!
Thank you for the video! It helps me as an aspiring backend engineer :) Anyway, I have a question. Sorry if it is a dumb question but, why can't you access the application using the public IP even if you are connected to the WiFi? I really appreciate if anyone can answer this question.
That's because that IP it's from the router so it doesn't have the app lets say, the app is running on the machine with the private IP and we stuck at the router who doesn't know where's the app
Why it doens't let you choose the port from the computer ? I mean you select the port of the router 8080 but it doesn't let you insert the port of the computer HusseinMac , solo how does the router what port to use ? or is it using the same port that was requested to the router ?
Hussein Nasser so if that section is for the private port where can you set the public port ? 🤔 bc in my configurations I need to put two ports the public and the private one
Hey Hussein! I tried port forwarding but basically when I use an online utility to check if my port is open, it says its closed. I really understood the concept behind it, but I just cant get my port to open. Is this because my service provider is blocking the ports from exposure on their end?
@@hnasr I tried disabling my firewall and testing again, but to no avail. In the end I tried portmap.io and that seems to work, but I cant seem to get it done the clean way you did it!
God, it´s the same shit I´m having now. I´ve got my new router 2 days ago and finally I can open ports. In the THEORY only unfortunately :( I´ve opened the port for Need for Speed 3, Need for Speed High Stakes and 3 Call of Duty games (MW2, MW3 and BO2) and only MW3 and BO2 are REALLY open meanwhile MW2 NAT is still "Strict" and hosting without Hamachi and Radmin VPN NFS3 and NFS4 people can´t connect to my lobby.
Steffen Hohler i still havent got it to work so I just resorted to using hamachi. It greatly limits the number of players I can get into my game though :/
good day sir, i want to first commend you for the justice you did to the video on port forwarding. neatly explained. thank you very much sir. may God almighty whom i server bless and give you more grace, knowledge and greater wisdom. i was really educated by the simplicity of your teaching. please sir, i need a favour from you, what is the name of the router you used for the above video and how can i get it, i live in Nigeria. once more thanks sir.
There is an online multiplayer game that is now in the hands of the fans to resurrect. In order to do that I need to be able to hold public ip addresses and port my routers. This video marks the first I've seen in my quest to roll up my sleeves, get to work, and bring Primal Carnage back! I look forward to learning the content this video's title alludes to, among much else.
Hello. I have a problem. First my PC connects to 192.168.0.1 (which is my router) and my router connects to 10.10.0.10 (router of provider located at building) which is i have no access to it. and it connects to my public wi-fi 95.*.*.122 i only can make node js listen to 10.10.0.10 by port forwarding, but since i have not access to that router, i can't make it listen to my public ip 95.*.*.122 is there any solutions for that? except ngrok
Sir, I do not mean that, I mean are there other ways to communicate with any site, do you use the API or Google code .. Do you have an explanation of how to use the code for communications
Thanks for the explanation simple and easy to understand, i would to ask a couple of questions if anyone could help me. Can i use 2 routers for the same home network (same service provider same bill) ? If yes does that mean the 2 different routers have 2 ip adresses or will it be just 1 ip adress on the 2 routers (the one provided by the network company)?
Yes if you are a target, I suggest enable DDOS protection either in your router settings if it supports it or create a cloudflare DNS record and let it point to your public IP address those guys support DDOS protoction. That being said DDOS cost a lot to carry out so not sure why someone will be targeting your minecraft server unless they have something to gain?
You explained it better than my college instructor.
This is what we need! Most sources explain concepts like this with a Networking context and so as developers not only does it not click, but we have no idea what relevance it has to the applications we develop. You explain conceptually and even make a point to show an example with a real world app while omitting "unnecessary" networking terms. And if we wanted to expand to lower level networking aspects we have a better chance with that now as well ..
This channel is a treasure trove.
Finally getting to understand misc. stuff I just heard thrown around by network or sys-admins.
Thanks, Hussein. And the humor makes everything even better!
This is EXCELLENT content and very well explained. Thank you, Hussein!
Easy, to see my public ip I enter myiponline.net
Good.
This guy needs to have more subs. Totally worth the watch.
can i do this thing with my mobile hotspot ??
It's like you have the magic powering of explaining things in the most understandable way.
I didn't really search for this, but thanks for the guide, now I learned something new. This was really helpful and understandable!
Thank you Willox! I am happy the video is informing
I think there was only one concept missing: the loopback interface of the router.
On some routers when you request the router's public ip it will not respond: you need a loopback.
brother, i've an issue. my router wan ip is 10.x.x.x series. how can i make port forwarding with this? is it possible to do?
Of course you can , this is a feature in the router. The ip range has nothing to do. Check your router admin page their should be a port forward option under firewall ... if not you can always do reverse tunneling check the video we made here ruclips.net/video/iR4jLbG9KXw/видео.html
10.0.0.0 - 10.255.255.255 are not public IPs. This range is private and is the range your router uses to assigns IPs to devices on your local network. Your public WAN IP will be some other address.
you are the best
Awesome explaining, thank u!
How do I change my IP address from private to public? I have the Netgear 4G LTE modem LM1200, so I can run a node online using my raspberry Pi 3 B+ running through a Deeper network Mini device
I'm doing your Nginx course in Udemy.
Ive done this and checked port foward checker, it says its closed and it shows me my ;public IP again! any help?
By far the most pristine explanation on this topic. And at last someone with enough balls to show the public IP on a tutorial because when you blur things out on a tutorial it gets confusing, for someone who still doesnt fully understand the topic!!
One of the greatest explanation video on RUclips 👍👍👍
How might I do this without adding the port 8080? Ultimately using a domain name which points to my public IP and then to the web server I have on my LAN? Thanks in advance.
4:34 and now we have to teach routers to do stuff!We dont know anything ourselves how will we teach our routers🤣😂🤣😂🤣
Great Content Hussein.Pease continue the good work.!!
After so many years, I have got the full idea of default gateway and public ip
Hi Sir i have tomcat running at 8080 on a windows pc ,,, i did port forwarding for this windowsPCIP and 8080 port ,and its not working from 4g net of my phone ,,,,what i need to do extra,,,,thanks
Hi Sir
what is other ways?
my isp just block ports and even made custom router there is no Port Forwarding on it ~ so its impossible for me to do it...
hello mate..how to port forwarding for games on steam..i’m trying so many times doing setup to run dedicated server..but it’s won’t work..maybe i’m doing wrong…i don’t understand about wan/router..where should i put the number for port 27015(steam game)..
How to make the public IP address as static? Is that possible to have fix public IP address?
I have a CGNAT so I can't open ports with my router :( any workaround
Also at 7:59 I think you only specified the ports that the router is meant to forward to HusseinMac, but not the port that it would go to on HusseinMac. Since you used 8080, is it meant to be assumed that it's at 8080 on HusseinMac too?
Hello! I did all the steps and my friend can connect to my private port so it works, but I tried to test it on my own with my very same computer like you did and it's not working. It says connection refused. Why is that?
bro is trying to hard to sound like Sal Khan from Khan Academy. It ain't going to happen man for sure! : ()
I've opened my ports in P.forwarding but still says not open when I check on a website to see open ports. Is there a reason for that... internally it's open
Actually u have stuff but ur way of explaining and pronounciation is hard to understand ... Kindly please change it
This will work only in one case : if your router's outside interface is assigned a public address. Otherwise, if you're assigned a private address, port forwarding will never work.
@@brinblasco9037 Use a VPN.
Or something like Zerotier.
what if my app relies on a web socket server to make a functioning chat app? even port forwarding it does not make it work. i can reach the app but no using the socket via it
I'm able to access my site via example.com:5000 on my pc, but when I try on mobile, the page cannot be found. can anyone help?
Hi There i have tried to port forward my website from lan to wan but it doesn't get port forward , no mistakes in the process please help me
what if my modem don't have a public ip address ? I am using a 4g modem with a cellular chip inside !
Thank you so much, the way your sharing very funny and easy to follow, keep it up :)
I am trying to find a place to buy SSH Tunnel no-login servers. Have any ideas?
How can I public my application which is deployed on Apache Tomcat and I am using linux machine
🥺 thnk you!!
I enjoyed this video. I enjoyed your voice. I give you a thumb up - like :)) (y)
excellent. crystal clear now. jazakAllahu khair Hussein.
I have watched hundreds of videos and done everything and it still doesn't fucking work.
I tried it, allowed my port through windows firewall , set up port forwarding through router but still its not working
My local is working but not the piblic IP. i am able to ping public IP but not using port.
hey, Hussain does the real server in mnc uses port forwarding or any other technique can u plz...............................................................................................................................................
explain the real industries model
big Fan of U
I can't access my server from local network, using public IP address.
However, I can access it from the internet using public IP address,
And I can also access it from local network, using private IP address.
Any idea?
Thanks
Thanks
i love your way of speaking, it makes me proud of being an arab!!! keep your good content up!
For a second I couldn't tell if this guy was Indian or Russian
So websites can only see your computer IP address and router Ip? Can they also see your Mac addresses and if so can they see the Mac address of your Computer, Router and Modem?
No they can’t. They can only see the public IP address of your router now even your private ip
your voice in english is not so good. consider explaining in arabic please
This Still Doesn't Work For Me, It's Like I'm Not Port forwarding Still Please Help :(
Did you assign a static ip to the host machine?
Absolute perfection of a video - teacher material ❤
Lucky not to be behind CNAT.
how we can make two different location computer IP in local IP range ?
I love your way of how you explain the point.
Thank you so much for your efforts and time
Isn't it supposed to be dangerous to expose your public IP. Why isn't he blurring it?
no it isn't, all someone can do is find out your city with your public IP, and nothing more than that (unless they are the government and have authority to demand data from your ISP)
What if my public IP is behind the NAT of my ISP?
but it is still not accessible outside of the network?
Thank you wonderful session with example. its very helpful for host my website through public
I open ports on router, firewall, but still not working
I have a VM (running via VirtualBox on my local) configured with a bridge network on my local machine. On my host machine (or local environment), I secured copied (via terminal command scp) a file to the VM via 192.168.1.#. did that event ever go to the router or did all the networking on that particular request remain entirely within my local machine?
Fantastic question and beyond my knowledge to be honest. But I will make a guess. If you bridged your VM that means it is now part of the same network your physical machine is on, that also means it is going to get a unique IP address usually from the router DHCP and a unique mac address. So my answer is yes that command does go through your router and your physical machine will answer the ARP request for both the VM and itself
Hope that helps but keep those challenging questions coming!
The best explanation on port forwarding, thank you.
Hussein. Here goes a few courses on college and im not even joking.
Hi what are the other ways to expose an application on internet
what will happen if i assign google or fb server ip address to my pc or my router?
Please explain your answer in detail, like the role of NAT, the impact of private and public addresses, etc. Thanks
hi how is it going? can you help us setting up ours?
This is really well explained but still can't get port forwarding to work
Tq so much... It really helps me... Thanks Again
You are great SIR. Keep making videos on software engineering 👍👍👍
Thank you for the video! It helps me as an aspiring backend engineer :)
Anyway, I have a question. Sorry if it is a dumb question but, why can't you access the application using the public IP even if you are connected to the WiFi? I really appreciate if anyone can answer this question.
That's because that IP it's from the router so it doesn't have the app lets say, the app is running on the machine with the private IP and we stuck at the router who doesn't know where's the app
Why it doens't let you choose the port from the computer ? I mean you select the port of the router 8080 but it doesn't let you insert the port of the computer HusseinMac , solo how does the router what port to use ? or is it using the same port that was requested to the router ?
Emilio Ortega I can actually that is what the local base port section is for ..
Hussein Nasser so if that section is for the private port where can you set the public port ? 🤔 bc in my configurations I need to put two ports the public and the private one
But what if there are 2 applications running on port 8080? How to port forward that time? Will the router fail?
Me trying to get public ip to play gta online💔😳
Great video. Thanks :)
i can access my application through my wan ip in my computer but if i try to access it on my phone using 4g, it gives me an error.
@@adoptedidopts the ip address connectiom is static and its fibernet
@@adoptedidopts excitel fibernet* i guess that's why its not working
how can i do it in te data from 'we' it is in egypt
How can be this done on oracle virtual machine
Hey Hussein! I tried port forwarding but basically when I use an online utility to check if my port is open, it says its closed. I really understood the concept behind it, but I just cant get my port to open. Is this because my service provider is blocking the ports from exposure on their end?
It could be you have a firewall somewhere in your networking stack that is blocking that particular port. Can you check that in your router
@@hnasr I tried disabling my firewall and testing again, but to no avail. In the end I tried portmap.io and that seems to work, but I cant seem to get it done the clean way you did it!
God, it´s the same shit I´m having now. I´ve got my new router 2 days ago and finally I can open ports. In the THEORY only unfortunately :( I´ve opened the port for Need for Speed 3, Need for Speed High Stakes and 3 Call of Duty games (MW2, MW3 and BO2) and only MW3 and BO2 are REALLY open meanwhile MW2 NAT is still "Strict" and hosting without Hamachi and Radmin VPN NFS3 and NFS4 people can´t connect to my lobby.
Steffen Hohler i still havent got it to work so I just resorted to using hamachi. It greatly limits the number of players I can get into my game though :/
@@mr.ickster516 There´s a better similar program called "Radmin VPN" you can have about 80 people or so in it
Thanks champ 😘
الله يوفقك اخ حسين، فخورين فيك
love your videos so much, big fan from Viet Nam
Glad you enjoy the content and all love to my subs from Vietnam 🇻🇳
good day sir, i want to first commend you for the justice you did to the video on port forwarding. neatly explained. thank you very much sir. may God almighty whom i server bless and give you more grace, knowledge and greater wisdom. i was really educated by the simplicity of your teaching. please sir, i need a favour from you, what is the name of the router you used for the above video and how can i get it, i live in Nigeria. once more thanks sir.
There is an online multiplayer game that is now in the hands of the fans to resurrect. In order to do that I need to be able to hold public ip addresses and port my routers.
This video marks the first I've seen in my quest to roll up my sleeves, get to work, and bring Primal Carnage back! I look forward to learning the content this video's title alludes to, among much else.
Hello. I have a problem.
First my PC connects to 192.168.0.1 (which is my router)
and my router connects to 10.10.0.10 (router of provider located at building) which is i have no access to it.
and it connects to my public wi-fi 95.*.*.122
i only can make node js listen to 10.10.0.10 by port forwarding, but since i have not access to that router, i can't make it listen to my public ip 95.*.*.122
is there any solutions for that? except ngrok
AppChu hey, in that case your only solution is reverse tunneling and for that you will need a public server that runs ssh server..
I dont have any knowledge. Surprisingly, I understood the lecture. You are a genius bro. God bless.
thank you verry much . so i want to make sure . so we need open port and public ip address for entering private lan . is it correct .
Sir, I do not mean that, I mean are there other ways to communicate with any site, do you use the API or Google code .. Do you have an explanation of how to use the code for communications
Thanks for the explanation simple and easy to understand, i would to ask a couple of questions if anyone could help me.
Can i use 2 routers for the same home network (same service provider same bill) ?
If yes does that mean the 2 different routers have 2 ip adresses or will it be just 1 ip adress on the 2 routers (the one provided by the network company)?
I guess it'll be only 1 public IP but 2 different IP's for the default gateway IP address
Wow, This what I was looking for?
a thank is not enough bro, i love the way you teach it so easy to understand, it you make it easy to understand
how to change your wan ip into public ip ?
is it safe to do ? (cyber attack, etc)
hi can someone help me, im hosting a minecraft server, is it possible for me/my server to be DDoS'ed by it's public IP?
Yes if you are a target, I suggest enable DDOS protection either in your router settings if it supports it or create a cloudflare DNS record and let it point to your public IP address those guys support DDOS protoction. That being said DDOS cost a lot to carry out so not sure why someone will be targeting your minecraft server unless they have something to gain?
Exactly what I am looking for
Your explanation was excellent I understand now THANK YOU !!!
Clear and easy thank's Bro i give you a big like 👌
Beautifully explained! Keep up the amazing work..
What is the technology name that can be used to maintain the internet public IP's?