Programmatically Open External Ports with UPNP

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

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

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

    man! i love you... this miniupnpc is a gem

  • @KZeroSoft
    @KZeroSoft 4 года назад +12

    Thank you for this great tutorial, but just small correction, webRTC and p2p apps are using STUN/TURN/ICE to connect behind nat because opening port through UPnP is not reliable option for such apps

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

      Karim Ezzat thanks Karim! I am interested to know more about this . how does WebRTC uses these protocols to listen to a port on my local machine and allow traffic to flow through my router? Wouldn’t my router block it?
      Is it connecting to an external STUN server and coordinate the communication with other peers through this server?
      Thanks again

    • @Ftoy-OG
      @Ftoy-OG 2 года назад +2

      was pretty sure most p2p apps use udp hole punching

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

      @@Ftoy-OG Yes that is exactly what webrtc does. STUN is just udp hole punching

    • @G5STU
      @G5STU 22 дня назад

      Me thinks you don't know what you're talking about :)

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

    as usual... after seeking for 'good' information on some subject...
    I ended up in your video....
    I start to see a pattern!!! LOL ;-))

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

    Thank you for the guide, I am going to use this tool to help automate an Apache Guacamole deployment :)

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

    My router is behind CGNAT will upnp work?

  • @brunogamesbr1
    @brunogamesbr1 3 года назад +6

    oh my god, i hate my isp, they blocked access to my router, so i have been trying to use upnp to port foward, thing is, is not working, it's showing the wrong public ip after it's done, and i can't use any of the two to connect remotely on my ssh, i'm probably going bald rn with the amount of stress this is giving me

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

    thanks bro, now i can play beammp

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

    Thank you for your presentation which was useful for me. I have a question. If I enable UPNP and port triggering in my router settings at the same time should this conflict the communication? Thanks in advance.

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

      I think that outcome will be managed by the router itself. Still I think Port Trigger will have a higher priority.

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

    Hi Hussein
    Thank you it's useful. Is there any way like UPNP for mobile phon?

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

    How did you get the picture face set up? I want to run this test but don't know how to display something.

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

    is it possible to make changes on the router's config using upnp?

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

    is this method work when i do not have public IP address? for example in case when i connected to the internet over mobile connection?

  • @enrigp
    @enrigp 8 месяцев назад

    Thanks for your video. I try it but I get a 606 error Action Unauthorized... other commands like "upnp -S" (wich is to get firewall status) works. Any idea that can help me? my router is an Arcadyan prv3399b-b-lt (also known as livebox Fibra) Thanks a lot.

  • @HK-sw3vi
    @HK-sw3vi 2 года назад

    great video again

  • @pamperedspider
    @pamperedspider 23 дня назад

    does it work on windows?

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

    I had Dynamic IP and its uses Inter wan service any solution

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

    Thanks for this video. But I have a question I installed miniupnpc and I tried using it but gives the following error:
    No IGD UPnP Device found on the network !
    But in the same time P2P sharing software works well.
    Is my router UPNP not working or is there something wrong with miniupnpc?

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

      Try to enable upnp in the router

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

      try using `-i` flag such as `upnpc -i `

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

    Just keep in mind that this has a lot of security issues. But if you're just gaming on your devices, this shouldn't really matter.

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

      Its still dangerous if someone is inside of your network, it allows them to poke holes in your network easily. Upnp has no method of authentication built into it. If your router / gateway has upnp activate, anyone can communicate with it to open any port IF they are inside of your network. Would be better if Upnp had some type of PSK or PKI support like how 802.1x operates. That way you could limit which host clients are allowed to communicate with the Upnp server.

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

      @@davehouser1 I agree.

  • @best-ki6mk
    @best-ki6mk 2 года назад

    very useful, Thanxxxxxxx

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

    what could run on port :5000 from browser?

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

    Anyone mind being able to help? Trying to use this to play old DOS games via DOSBox IPX to TCP/UDP. I want to open port 10000. How would I go about setting it up using UPNP?

  • @后知后觉-q7n
    @后知后觉-q7n 4 года назад

    very useful

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

    I wonder if the cgNAT will accept this :)

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

    love michael scott

  • @SanjeevKumar-rg5tb
    @SanjeevKumar-rg5tb 2 года назад

    I have been using it for a decade but today i forgot what it was some how the keyword upnp in router brought me here

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

    No valid UPNP Internet Gateway Device found.
    i am getting this error, can anyone please help.

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

    very bad. As a programmer, I wanted to know exactly how UPNP works, on what principle, on what protocol. Everyone will be able to do this with a ready-made program.

  • @MrMemetic321
    @MrMemetic321 7 месяцев назад

    I use UPNP wizard. Without it i couldn't play the games i want :(

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

    Why whatsapp open port upnp in my router

  • @rainchai851
    @rainchai851 5 лет назад +2

    so can I delete other people's ports?🤣

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

      RAIN Chai good question. you can delete ports that have been opened with upnp on your router only. Im not sure if you will get an error if the port wasnt open by your machine..

    • @rainchai851
      @rainchai851 5 лет назад +4

      let me try in my university network, will update here if I dont get caught

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

      RAIN Chai haha probably not a good idea. I think your uni have disabled upnp on their router

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

      is there any way to close it manually?🧐

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

      I didn't check, but logic suggests me that UPnP allows you only to add/edit maps leading to your machine

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

    Dude, your voice fades in then out and back again, think of your audio clarity / coherence....

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

    If we somehow access the cmd of the victim's computer and the victim's computer has upnp installed in it then Bingo