UDP hole punching | The Backend Engineering Show

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ •

  • @hnasr
    @hnasr  2 роки тому +3

    Get my Fundamentals of Networking for Effective Backends udemy course Head to network.husseinnasser.com (link redirects to udemy with coupon)

  • @biplobmanna
    @biplobmanna 2 роки тому +12

    Starting the day with some Backend Engineering is substantially motivating to get some real engineering work done.

  • @zaheeruddinfaiz7064
    @zaheeruddinfaiz7064 2 роки тому +5

    7:38 I was thinking of Pam from The Office. When she was receiving huge bouqes of flower on Valentine's Day. But none of them were for herself. She got really sad seeing that.
    She kept of "routing" the boques to Phyllis :(

  • @withdjmorris
    @withdjmorris 2 роки тому +3

    Dude the hole thing came in just brilliant 🤣

  • @tutacat
    @tutacat 2 місяці тому

    For TCP, holepunching is not the only method, because you can use server polling to receive incoming packets without directly connecting.
    firewall security is not "too strict", it is security. STUN is basically just a handshake server for holepunching.

  • @Shuriken255
    @Shuriken255 Рік тому

    I really like the way you explain the concepts behind the terms like this one. Very understandable and clear.

  • @louiswong2477
    @louiswong2477 Місяць тому

    You are explaining UDP hole punching so good

  • @GmanGavin1
    @GmanGavin1 Рік тому

    Thank you thank you thank you!!! Quality content, great mic quality, clear and concise talk, not overwhelming yet very informative. Subbed!

  • @lukaswerner4390
    @lukaswerner4390 2 роки тому +1

    I just re-watched this after looking at libp2p hole punching. This is a good explainer. But fun fact we can do p2p through symmetric nat because of the sync packet being set. Pretty cool stuff

  • @tutacat
    @tutacat 2 місяці тому

    A sort of TCP holepunching exists, but obviously requires a less secure firewall setting. This means with sequential ports guessing of the new port to be opened, someone could interfere with your standard insecure HTTP connection, so it is avoided

  • @zaheeruddinfaiz7064
    @zaheeruddinfaiz7064 2 роки тому +2

    Hussain, what about the Virtual Server setting that is present on the routers. I think we can use that to forward the packet to the relavent machine in the private network.
    While setting this, we specify the private ip address of the machine and the port of the machine where we want to route the packet to.

    • @ili101
      @ili101 2 роки тому +2

      "Virtual Servers" is a confusing synonym to "Port Forwarding", port forwarding will solve this problem but need to be configured manually on your router, a better solution is "UPnP" which is a protocol that let your PC send a request to your router to set a port forwarding rule for you automatically.

    • @zaheeruddinfaiz7064
      @zaheeruddinfaiz7064 2 роки тому

      @@ili101 That is so interesting. I will look into UPnP 🙂

  • @jolachye8450
    @jolachye8450 2 роки тому +1

    Hi Hussein. Once you punched a hole with UDP and start the peer-to-peer communication between two computer, is it possible to keep that connection but convert it from UDP to TCP, so that you can continue the communication with TCP (instead uf UDP) ?

  • @itherna
    @itherna 2 роки тому +2

    Hi Hussein and thanks for a great video. Is there any time limit for how long each hole exists before the router closes it?

  • @Shadrak33
    @Shadrak33 Рік тому

    great information! can you tell me why I can't get my UDP hole punching script to work inside a docker container when it works just fine outside it?

  • @snowzZzZz
    @snowzZzZz 7 місяців тому

    If I have a server (that is already port forwarded) and a client
    Can I just add a STUN library like libnice to the server, and fetch the public ip/port from the server, then send to the server again with this info, and then they communicate?
    if summerrical NAT only accepts return packets from whom it sent the first packet to, then this should solve this issue, without the need to configure an in the middle server

  • @alexanderkremenchuk8378
    @alexanderkremenchuk8378 3 місяці тому

    great explanation

  • @noraalsulttan1437
    @noraalsulttan1437 6 місяців тому

    thank you, was easy to follow through :)

  • @rocketleague2136
    @rocketleague2136 2 роки тому +1

    @Hussain Nasser give us your top10 book for back end programmers!

  • @autohmae
    @autohmae 2 роки тому

    11:20 that sounds like an other backronym
    13:28 it's especially problematic if both sides have port randomization.
    15:43 unless you are Dan Kaminsky of course... (RIP) see: DNS Rebinding And More Packet Tricks at 24c3

  • @bossragegamer4081
    @bossragegamer4081 2 роки тому

    Great video and explanation of UDP hole punching.

  • @mauroinde
    @mauroinde 2 роки тому

    amazing, happy to follow you Mr.

  • @giovannibertoncelli6777
    @giovannibertoncelli6777 2 роки тому +1

    Every day a router gets friendzoned

  • @masonsafavi1886
    @masonsafavi1886 2 роки тому

    Huge thanks صدیقی

  • @gerooq
    @gerooq 2 роки тому +2

    video starts at 8:17 :/

  • @devyetii
    @devyetii 2 роки тому +1

    Looks like you need some coffee to fill the holes 😂

  • @PawitSahare
    @PawitSahare Рік тому

    Pls give me a example

  • @muhammadnazirinqlabimediac3546
    @muhammadnazirinqlabimediac3546 2 роки тому

    not entirely true tbh that "none of the packets are intended for router". Alot of control plane protocols packets are intended for router

  • @riyaadhabrahams
    @riyaadhabrahams 2 роки тому

    Why did you make me feel sad for the poor routers

  • @77RzR77
    @77RzR77 25 днів тому

    i open my router's admin panel to the internet so that it never gets lonely :3

  • @vindvind
    @vindvind 2 роки тому

    Poor router - maybe we can send a package to it just once? 😭📦

  • @MustataAlexandruIon
    @MustataAlexandruIon 10 місяців тому

    Good Video! I'm glad your name is not PAul!

  • @anarabdullazad4649
    @anarabdullazad4649 2 роки тому

    7:45 :) good humour.

  • @sayansikdar4385
    @sayansikdar4385 10 місяців тому

    is this a AI voice over?

  • @Nominal_GDP
    @Nominal_GDP 2 роки тому +1

    nice asmr

  • @faridrahman1731
    @faridrahman1731 7 місяців тому

    No practical

  • @increasingsun
    @increasingsun 2 роки тому

    First 🤣

    • @random4573
      @random4573 2 роки тому

      Congratulation

    • @mastahc0w
      @mastahc0w 2 роки тому +2

      10 IF "First" = 0 THEN 30 ELSE 20
      20 END
      30 PRINT "HI"
      HI

  • @cmkjfnve
    @cmkjfnve 6 днів тому

    Too much about holes 🤣🤣🤣