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

Sdílet
Vložit
  • čas přidán 3. 07. 2024
  • In this video we will explain how you can author a web application, host it on your laptop then expose it through the internet via port forwarding. We will explain the difference between private ip in Local Area network and Public IP, we will explain how routers have two IP addresses public and private IP.
    We will also do a live edit on my router configuration to do a port forwarding of port 8080 to my local laptop and even access that through my phone.
    -Hussein
    Stay Awesome!
    Hussein
  • Věda a technologie

Komentáře • 308

  • @keithscull8288
    @keithscull8288 Před 2 lety +22

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

  • @philomath6190
    @philomath6190 Před 3 lety +83

    You explained it better than my college instructor.

  • @szilardfineascovasa6144
    @szilardfineascovasa6144 Před rokem +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!

  • @andresbonelli
    @andresbonelli Před rokem +1

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

  • @sukiyang3474
    @sukiyang3474 Před 2 lety +3

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

  • @brianjosephblake
    @brianjosephblake Před 3 lety +8

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

  • @AsrarSheikh_IN
    @AsrarSheikh_IN Před 3 lety +3

    One of the greatest explanation video on CZcams 👍👍👍

  • @kallolchakrabarti8210
    @kallolchakrabarti8210 Před 2 lety

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

  • @atibyte
    @atibyte Před 4 lety +1

    The best explanation on port forwarding, thank you.

  • @rshaikh05
    @rshaikh05 Před 3 lety +1

    excellent. crystal clear now. jazakAllahu khair Hussein.

  • @norah5073
    @norah5073 Před 2 lety +1

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

  • @stevelamparas
    @stevelamparas Před 3 lety

    Well explained in just 9 40 minutes. Good job

  • @alih.3128
    @alih.3128 Před 2 lety

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

  • @coluccicreations5845
    @coluccicreations5845 Před 2 lety

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

  • @harshitgangwar4500
    @harshitgangwar4500 Před 2 lety

    Awesome video man. I am so grateful I found your channel.

  • @praveenreddy5211
    @praveenreddy5211 Před 2 lety

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

  • @ryarod
    @ryarod Před 3 lety

    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.

  • @sayan883
    @sayan883 Před 3 lety +2

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

  • @Alex-ir5ph
    @Alex-ir5ph Před 2 lety +1

    Awesome explaining, thank u!

  • @humayunnaveedkhan1281
    @humayunnaveedkhan1281 Před 3 lety

    Thank you so much my brother Hussein.. Best explanation

  • @helioradial
    @helioradial Před 2 lety

    simple and well said for everyone to understand !!! thank you Hussein :D :)

  • @programmingwithshahriar9939
    @programmingwithshahriar9939 Před 11 měsíci

    Beautifully explained! Keep up the amazing work..

  • @hamzanasir1590
    @hamzanasir1590 Před 3 lety +1

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

  • @Thugga_Thugga
    @Thugga_Thugga Před 3 lety

    Thank you so much man! Keep doing excellent.

  • @Bloome_BlueFolf
    @Bloome_BlueFolf Před rokem

    Simple and clear. Well made.

  • @namahshrestha3226
    @namahshrestha3226 Před 5 lety +44

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

  • @sravanikatasani.630
    @sravanikatasani.630 Před 2 lety

    Thank you for this amazing content!!

  • @mazighus
    @mazighus Před rokem

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

  • @sukhpreetlotey1172
    @sukhpreetlotey1172 Před 3 lety

    Thanks for clearly explaining it.

  • @kamaleshpramanik7645
    @kamaleshpramanik7645 Před 3 lety

    This is awesome ... Thank you very much Sir.

  • @vuhaiang2077
    @vuhaiang2077 Před 3 lety +1

    love your videos so much, big fan from Viet Nam

    • @hnasr
      @hnasr  Před 3 lety +3

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

  • @mebachanews3450
    @mebachanews3450 Před 3 lety

    Life saver! Thank you sir!

  • @sazon8009
    @sazon8009 Před 3 lety +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

  • @MrStranG-MrStranG
    @MrStranG-MrStranG Před 2 lety

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

  • @gouravkhator
    @gouravkhator Před 2 lety +1

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

  • @SuperFakeMinecraftChannel
    @SuperFakeMinecraftChannel Před 4 lety +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  Před 4 lety

      Thank you Willox! I am happy the video is informing

  • @giiovaani
    @giiovaani Před 2 lety

    Here we have a REAL teacher !!!

  • @user-nc6ho6dj3i
    @user-nc6ho6dj3i Před 6 měsíci

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

  • @andylib
    @andylib Před 4 lety +2

    This is tutorial is gold! Thanks

  • @no_one3249
    @no_one3249 Před 2 lety

    Thank you so much for the explanation~!

  • @gigachad6844
    @gigachad6844 Před rokem

    Awesome explanation.

  • @aryanbhosale9254
    @aryanbhosale9254 Před 3 lety

    Thanks very useful for Arduino projects that need websockets

  • @rudykammermeier8227
    @rudykammermeier8227 Před 2 lety

    Excellent explanation!

  • @vvnnable
    @vvnnable Před 2 lety

    you are a life saver bro

  • @ianchong7422
    @ianchong7422 Před 2 lety

    so simple and thanks for sharing.

  • @indietuts
    @indietuts Před rokem

    Wow, This what I was looking for?

  • @fergusproctor2710
    @fergusproctor2710 Před 3 lety

    Thank you! Very helpful

  • @1217castor
    @1217castor Před rokem

    Exactly what I am looking for

  • @theSDE2
    @theSDE2 Před 2 lety

    Very well explained sir.

  • @bryanssj3949
    @bryanssj3949 Před 4 lety

    Great!! Finally I can play Need for Speed 3 Hot pursuit whit my friends :D greetings from Chile

  • @Trstn12
    @Trstn12 Před 3 lety +2

    Thank you for this

  • @JuanchoPM
    @JuanchoPM Před 3 lety

    Such a master... Subbed and liked

  • @MohamedElhusseinPlus
    @MohamedElhusseinPlus Před rokem

    Thanks; nice and simple

  • @abidsaleem7526
    @abidsaleem7526 Před 4 lety +1

    Great video. Thanks :)

  • @aleaguiarl
    @aleaguiarl Před 3 lety

    Fantastic explanation

  • @Parth.Deshpande
    @Parth.Deshpande Před 2 lety

    amazing explanation

  • @usernamewatcher
    @usernamewatcher Před 4 lety

    Well done! Useful! Thanks! ))

  • @programmingjoint3034
    @programmingjoint3034 Před 4 lety +2

    you are the best

  • @user-rg1jp2us4o
    @user-rg1jp2us4o Před 4 lety

    Thank you so much for this simple explanation. Its down to earth and makes sense. You have earned my sub.

  • @alirezai1434
    @alirezai1434 Před 4 lety +1

    mashallah brother nice job

  • @jayanthbondi4251
    @jayanthbondi4251 Před 2 lety

    Excellent video !!

  • @sul3y
    @sul3y Před 3 lety

    Thanks Hussein

  • @tronghieu60s
    @tronghieu60s Před 3 lety

    Thank you very much.

  • @yamenvoice
    @yamenvoice Před 3 lety

    Just PERFECT

  • @robertdowney1823
    @robertdowney1823 Před 3 lety +3

    🥺 thnk you!!

  • @burakuren5188
    @burakuren5188 Před 2 lety

    YOU ARE AMAZİNG DUDE !!!

  • @adhishmalviya426
    @adhishmalviya426 Před 2 lety

    Are mere ladke jaan he tu meri 🔥

  • @samyakjain720
    @samyakjain720 Před 2 lety

    you nailed it

  • @chum8520
    @chum8520 Před 3 lety

    great explanation!!

    • @hnasr
      @hnasr  Před 3 lety

      Heshan Dissanayake thanks

  • @IamBrocco
    @IamBrocco Před 2 lety

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

  • @yayatoure47
    @yayatoure47 Před 3 lety

    جزاء الله خيرًا

  • @minhthinhhuynhle9103
    @minhthinhhuynhle9103 Před 2 lety

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

  • @user-fp9ve9ux1h
    @user-fp9ve9ux1h Před 4 lety

    so great ..... many likes :)

  • @mrjohnbull
    @mrjohnbull Před 3 lety

    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.

  • @slonbeskonechen8310
    @slonbeskonechen8310 Před 3 lety

    Great thanks!

  • @mohamedeladl6273
    @mohamedeladl6273 Před rokem

    very nice!

  • @monireol
    @monireol Před 2 lety +1

    Thanks

  • @rashedalqadi3695
    @rashedalqadi3695 Před rokem

    شكرا لك

  • @antoninperonnet6138
    @antoninperonnet6138 Před 2 lety +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.

  • @mostafamohammed4853
    @mostafamohammed4853 Před 4 lety +1

    thanks bro

  • @boydchongo2556
    @boydchongo2556 Před rokem

    wow thanks man

  • @timmytim9054
    @timmytim9054 Před 5 lety +3

    Your personality is amazing.

    • @hnasr
      @hnasr  Před 5 lety +1

      Timmy Tim thank you so much for the compliment! Hope you enjoyed the video :)

  • @miguelcrtz
    @miguelcrtz Před 5 měsíci

    thank you

  • @ignaciotorocoronado985

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

  • @ramakrishnant7784
    @ramakrishnant7784 Před 4 lety

    This is awesome. Love it

  • @lanncerigs262
    @lanncerigs262 Před 2 lety +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 Před rokem

      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

  • @xsorn
    @xsorn Před 4 lety

    Wow, thank you for explaining it so well.

    • @hnasr
      @hnasr  Před 4 lety

      xsorn thanks 🙏 appreciate it ! Have a great day

    • @kambalavijay6800
      @kambalavijay6800 Před 3 lety

      @@hnasr We have just selected the machine to which request should be routed, we haven't specified on which port the request should be routed to, right? then by default would it go the same port on the forwarded machine?

  • @midhundathan4316
    @midhundathan4316 Před 3 lety

    Thanks ❤️

  • @jongjong9455
    @jongjong9455 Před 4 lety

    Can you make a demonstration about trueconf using this concept. Connecting client to the server using internet.. Thanks.

  • @mrsahed4726
    @mrsahed4726 Před 6 hodinami

    Great ❤

  • @andrew5407
    @andrew5407 Před 3 lety

    great!

  • @sbasjinfnly9186
    @sbasjinfnly9186 Před 5 lety +1

    15xs but I got it thanku so much loved it

    • @hnasr
      @hnasr  Před 5 lety

      Sbasjin Finley thank uuuuu

  • @hoangtruong7166
    @hoangtruong7166 Před 3 lety

    thanks

  • @ico-theredstonesurgeon4380

    Best tutorial out there

  • @f.i4215
    @f.i4215 Před 4 lety +2

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

  • @shijuvarkeythomas406
    @shijuvarkeythomas406 Před 3 lety +1

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

  • @youneskechache1804
    @youneskechache1804 Před 2 lety

    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 Před rokem

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

  • @ramziallia3437
    @ramziallia3437 Před rokem

    thnx

  • @tweetgorge6588
    @tweetgorge6588 Před 2 lety

    عالی

  • @unknown-bx8my
    @unknown-bx8my Před 2 lety

    😍😍😍😍