Public IP vs. Private IP and Port Forwarding (Explained by Example)

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 316

  • @philomath6190
    @philomath6190 3 года назад +84

    You explained it better than my college instructor.

  • @keithscull8288
    @keithscull8288 2 года назад +23

    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 ..

  • @szilardfineascovasa6144
    @szilardfineascovasa6144 Год назад +6

    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!

  • @brianjosephblake
    @brianjosephblake 3 года назад +9

    This is EXCELLENT content and very well explained. Thank you, Hussein!

  • @adolfklinsmann3789
    @adolfklinsmann3789 4 года назад +4

    Easy, to see my public ip I enter myiponline.net

  • @namahshrestha3226
    @namahshrestha3226 5 лет назад +45

    This guy needs to have more subs. Totally worth the watch.

  • @upsolvecontest4677
    @upsolvecontest4677 2 года назад +1

    can i do this thing with my mobile hotspot ??

  • @sukiyang3474
    @sukiyang3474 2 года назад +4

    It's like you have the magic powering of explaining things in the most understandable way.

  • @SuperFakeMinecraftChannel
    @SuperFakeMinecraftChannel 4 года назад +15

    I didn't really search for this, but thanks for the guide, now I learned something new. This was really helpful and understandable!

    • @hnasr
      @hnasr  4 года назад

      Thank you Willox! I am happy the video is informing

  • @antoninperonnet6138
    @antoninperonnet6138 3 года назад +3

    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.

  • @mjh3426
    @mjh3426 5 лет назад +3

    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?

    • @hnasr
      @hnasr  5 лет назад

      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

    • @lyingcat9022
      @lyingcat9022 5 лет назад

      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.

  • @programmingjoint3034
    @programmingjoint3034 4 года назад +2

    you are the best

  • @Alex-ir5ph
    @Alex-ir5ph 2 года назад +1

    Awesome explaining, thank u!

  • @Airborn14
    @Airborn14 2 года назад

    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

  • @princeofxane
    @princeofxane 2 года назад +1

    I'm doing your Nginx course in Udemy.

  • @f.i4215
    @f.i4215 4 года назад +2

    Ive done this and checked port foward checker, it says its closed and it shows me my ;public IP again! any help?

  • @andresbonelli
    @andresbonelli 2 года назад +2

    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!!

  • @AsrarSheikh_IN
    @AsrarSheikh_IN 3 года назад +3

    One of the greatest explanation video on RUclips 👍👍👍

  • @rickhorvath
    @rickhorvath Год назад

    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.

  • @killingtech9514
    @killingtech9514 4 года назад +2

    4:34 and now we have to teach routers to do stuff!We dont know anything ourselves how will we teach our routers🤣😂🤣😂🤣

  • @sayan883
    @sayan883 3 года назад +2

    Great Content Hussein.Pease continue the good work.!!

  • @gouravkhator
    @gouravkhator 3 года назад +1

    After so many years, I have got the full idea of default gateway and public ip

  • @hemsagarpatel8992
    @hemsagarpatel8992 4 года назад +1

    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

  • @Heldn100
    @Heldn100 Год назад

    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...

  • @kazrie5795
    @kazrie5795 3 года назад

    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)..

  • @KidsShowtimeOfficial
    @KidsShowtimeOfficial 3 года назад

    How to make the public IP address as static? Is that possible to have fix public IP address?

  • @8ack2Lobby
    @8ack2Lobby 3 года назад

    I have a CGNAT so I can't open ports with my router :( any workaround

  • @btmillion2813
    @btmillion2813 Месяц назад

    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?

  • @AdrienAranda
    @AdrienAranda 2 года назад

    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?

  • @StreetSmartification
    @StreetSmartification 3 года назад

    bro is trying to hard to sound like Sal Khan from Khan Academy. It ain't going to happen man for sure! : ()

  • @deciodasilva3960
    @deciodasilva3960 2 года назад

    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

  • @vishwarts8927
    @vishwarts8927 3 года назад

    Actually u have stuff but ur way of explaining and pronounciation is hard to understand ... Kindly please change it

  • @nournote
    @nournote 3 года назад +1

    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.

    • @nournote
      @nournote 2 года назад

      @@brinblasco9037 Use a VPN.
      Or something like Zerotier.

  • @gianlucafontana5536
    @gianlucafontana5536 Год назад

    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

  • @derekwhite8196
    @derekwhite8196 3 года назад

    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?

  • @raghuvanshiedit
    @raghuvanshiedit 2 года назад

    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

  • @anasbr3586
    @anasbr3586 2 года назад

    what if my modem don't have a public ip address ? I am using a 4g modem with a cellular chip inside !

  • @ThangPhan-q3u
    @ThangPhan-q3u 9 месяцев назад

    Thank you so much, the way your sharing very funny and easy to follow, keep it up :)

  • @thegame8538
    @thegame8538 3 года назад

    I am trying to find a place to buy SSH Tunnel no-login servers. Have any ideas?

  • @RanjeetVishwakarma-ju1qr
    @RanjeetVishwakarma-ju1qr Год назад

    How can I public my application which is deployed on Apache Tomcat and I am using linux machine

  • @robertdowney1823
    @robertdowney1823 3 года назад +3

    🥺 thnk you!!

  • @minhthinhhuynhle9103
    @minhthinhhuynhle9103 2 года назад

    I enjoyed this video. I enjoyed your voice. I give you a thumb up - like :)) (y)

  • @rshaikh05
    @rshaikh05 3 года назад +1

    excellent. crystal clear now. jazakAllahu khair Hussein.

  • @user-vk8yq8oq7p
    @user-vk8yq8oq7p 4 года назад

    I have watched hundreds of videos and done everything and it still doesn't fucking work.

  • @phantomswordorpoo
    @phantomswordorpoo 4 года назад +1

    I tried it, allowed my port through windows firewall , set up port forwarding through router but still its not working

  • @ssshammi
    @ssshammi 2 года назад

    My local is working but not the piblic IP. i am able to ping public IP but not using port.

  • @waves-coder
    @waves-coder 3 года назад

    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

  • @Adamson_zero
    @Adamson_zero 3 года назад

    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

  • @monireol
    @monireol 2 года назад +1

    Thanks

  • @IamBrocco
    @IamBrocco 2 года назад

    i love your way of speaking, it makes me proud of being an arab!!! keep your good content up!

  • @nust8235
    @nust8235 3 года назад

    For a second I couldn't tell if this guy was Indian or Russian

  • @tonytrilex2555
    @tonytrilex2555 3 года назад

    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?

    • @hnasr
      @hnasr  3 года назад

      No they can’t. They can only see the public IP address of your router now even your private ip

  • @MuhammadMedhat-w9j
    @MuhammadMedhat-w9j Год назад

    your voice in english is not so good. consider explaining in arabic please

  • @Wesker-he9cx
    @Wesker-he9cx 8 месяцев назад

    This Still Doesn't Work For Me, It's Like I'm Not Port forwarding Still Please Help :(

    • @RudraParambramha
      @RudraParambramha 16 дней назад

      Did you assign a static ip to the host machine?

  • @bobbymannino
    @bobbymannino Месяц назад

    Absolute perfection of a video - teacher material ❤

  • @pajeetsingh
    @pajeetsingh 14 дней назад

    Lucky not to be behind CNAT.

  • @shijuvarkeythomas406
    @shijuvarkeythomas406 4 года назад +1

    how we can make two different location computer IP in local IP range ?

  • @norah5073
    @norah5073 2 года назад +1

    I love your way of how you explain the point.
    Thank you so much for your efforts and time

  • @btmillion2813
    @btmillion2813 Месяц назад

    Isn't it supposed to be dangerous to expose your public IP. Why isn't he blurring it?

    • @pshr2447
      @pshr2447 13 дней назад

      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)

  • @promasterx
    @promasterx 3 года назад

    What if my public IP is behind the NAT of my ISP?

  • @ehtashamshami6969
    @ehtashamshami6969 14 дней назад

    but it is still not accessible outside of the network?

  • @praveenreddy5211
    @praveenreddy5211 2 года назад

    Thank you wonderful session with example. its very helpful for host my website through public

  • @charli384
    @charli384 Год назад

    I open ports on router, firewall, but still not working

  • @nathanbenton2051
    @nathanbenton2051 3 года назад

    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?

    • @hnasr
      @hnasr  3 года назад +1

      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!

  • @atibyte
    @atibyte 4 года назад +1

    The best explanation on port forwarding, thank you.

  • @ignaciotorocoronado985
    @ignaciotorocoronado985 3 года назад

    Hussein. Here goes a few courses on college and im not even joking.

  • @Manishkumar-i1m9l
    @Manishkumar-i1m9l Год назад

    Hi what are the other ways to expose an application on internet

  • @moosanagi3405
    @moosanagi3405 3 года назад

    what will happen if i assign google or fb server ip address to my pc or my router?

    • @moosanagi3405
      @moosanagi3405 3 года назад

      Please explain your answer in detail, like the role of NAT, the impact of private and public addresses, etc. Thanks

  • @cartegeano
    @cartegeano 2 года назад

    hi how is it going? can you help us setting up ours?

  • @jereturunen2175
    @jereturunen2175 3 года назад

    This is really well explained but still can't get port forwarding to work

  • @MrStranG-MrStranG
    @MrStranG-MrStranG 3 года назад

    Tq so much... It really helps me... Thanks Again

  • @hamzanasir1590
    @hamzanasir1590 4 года назад +1

    You are great SIR. Keep making videos on software engineering 👍👍👍

  • @lanncerigs262
    @lanncerigs262 2 года назад +1

    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.

    • @oscarozorio1005
      @oscarozorio1005 2 года назад

      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

  • @emilioortega9487
    @emilioortega9487 4 года назад

    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 ?

    • @hnasr
      @hnasr  4 года назад

      Emilio Ortega I can actually that is what the local base port section is for ..

    • @emilioortega9487
      @emilioortega9487 4 года назад

      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

  • @pantherwolfbioz13
    @pantherwolfbioz13 3 года назад

    But what if there are 2 applications running on port 8080? How to port forward that time? Will the router fail?

  • @nonohii32
    @nonohii32 3 года назад

    Me trying to get public ip to play gta online💔😳

  • @abidsaleem7526
    @abidsaleem7526 4 года назад +1

    Great video. Thanks :)

  • @harsimransingh7735
    @harsimransingh7735 4 года назад +1

    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.

    • @harsimransingh7735
      @harsimransingh7735 3 года назад

      @@adoptedidopts the ip address connectiom is static and its fibernet

    • @harsimransingh7735
      @harsimransingh7735 3 года назад

      @@adoptedidopts excitel fibernet* i guess that's why its not working

  • @ahmedgames9335
    @ahmedgames9335 9 месяцев назад

    how can i do it in te data from 'we' it is in egypt

  • @mehrajquarish8540
    @mehrajquarish8540 Год назад

    How can be this done on oracle virtual machine

  • @mr.ickster516
    @mr.ickster516 4 года назад +1

    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
      @hnasr  4 года назад

      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

    • @mr.ickster516
      @mr.ickster516 4 года назад

      @@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!

    • @leruty
      @leruty 4 года назад

      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.

    • @mr.ickster516
      @mr.ickster516 4 года назад

      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 :/

    • @leruty
      @leruty 4 года назад

      @@mr.ickster516 There´s a better similar program called "Radmin VPN" you can have about 80 people or so in it

  • @alih.3128
    @alih.3128 2 года назад

    Thanks champ 😘
    الله يوفقك اخ حسين، فخورين فيك

  • @vuhaiang2077
    @vuhaiang2077 3 года назад +1

    love your videos so much, big fan from Viet Nam

    • @hnasr
      @hnasr  3 года назад +3

      Glad you enjoy the content and all love to my subs from Vietnam 🇻🇳

  • @mrjohnbull
    @mrjohnbull 4 года назад

    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.

  • @ryarod
    @ryarod 3 года назад

    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.

  • @appchu5671
    @appchu5671 4 года назад

    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

    • @hnasr
      @hnasr  4 года назад

      AppChu hey, in that case your only solution is reverse tunneling and for that you will need a public server that runs ssh server..

  • @kallolchakrabarti8210
    @kallolchakrabarti8210 3 года назад

    I dont have any knowledge. Surprisingly, I understood the lecture. You are a genius bro. God bless.

  • @godofkings4366
    @godofkings4366 3 года назад

    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 .

  • @ferasawwad71
    @ferasawwad71 4 года назад

    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

  • @youneskechache1804
    @youneskechache1804 2 года назад

    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)?

    • @oscarozorio1005
      @oscarozorio1005 2 года назад

      I guess it'll be only 1 public IP but 2 different IP's for the default gateway IP address

  • @indietuts
    @indietuts Год назад

    Wow, This what I was looking for?

  • @sazon8009
    @sazon8009 3 года назад +3

    a thank is not enough bro, i love the way you teach it so easy to understand, it you make it easy to understand

  • @raizogaming501
    @raizogaming501 2 года назад

    how to change your wan ip into public ip ?

  • @nilayanbhattacharjee6351
    @nilayanbhattacharjee6351 2 года назад

    is it safe to do ? (cyber attack, etc)

  • @azrqelakaozra9053
    @azrqelakaozra9053 4 года назад

    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?

    • @hnasr
      @hnasr  4 года назад

      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?

  • @1217castor
    @1217castor Год назад

    Exactly what I am looking for

  • @coluccicreations5845
    @coluccicreations5845 2 года назад

    Your explanation was excellent I understand now THANK YOU !!!

  • @mazighus
    @mazighus Год назад

    Clear and easy thank's Bro i give you a big like 👌

  • @programmingwithshahriar9939
    @programmingwithshahriar9939 Год назад

    Beautifully explained! Keep up the amazing work..

  • @abodemustafa7558
    @abodemustafa7558 3 года назад

    What is the technology name that can be used to maintain the internet public IP's?