Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Gateway port forwarding

Gateway port forwarding

Scheduled Pinned Locked Moved C#
questionsysadminsecurityhelptutorial
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    evangile
    wrote on last edited by
    #1

    i try make a litle chat that will be server/client but i have a major issu , when everithing is working local it seem i'm not able pass my gateway if i not forward manualy the required port. now i have tryed the upnp and i think the code work but my netbox refuse the upnp protocole >> so i feel not using upnp since not everyone able use it or they will have to enable it + i heard of lot of security issue. now i searched an other way to do it and found nothing on net. but i see msn is enable forward port in my non upnp box?? or even other app like azureus bit torrent accept in/out conection (they not forward the port in my netbox though). so my question is how those programme able to do that on a non upnp gateway??? how can i do the same thing all i need is to echange 2 ligne of chat realy that can't be that hard ><. (no need talk about why i do a server/client for each user that not the point, the point is how to deal with port). chunk of code apreciate^^

    L 1 Reply Last reply
    0
    • E evangile

      i try make a litle chat that will be server/client but i have a major issu , when everithing is working local it seem i'm not able pass my gateway if i not forward manualy the required port. now i have tryed the upnp and i think the code work but my netbox refuse the upnp protocole >> so i feel not using upnp since not everyone able use it or they will have to enable it + i heard of lot of security issue. now i searched an other way to do it and found nothing on net. but i see msn is enable forward port in my non upnp box?? or even other app like azureus bit torrent accept in/out conection (they not forward the port in my netbox though). so my question is how those programme able to do that on a non upnp gateway??? how can i do the same thing all i need is to echange 2 ligne of chat realy that can't be that hard ><. (no need talk about why i do a server/client for each user that not the point, the point is how to deal with port). chunk of code apreciate^^

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Maybe with holepunching, you might want to look that up. You're right though, NAT is a major issue. And it doesn't look like it's going away soon (maybe with IPv6 - which isn't going to be actually here soon)

      E 1 Reply Last reply
      0
      • L Lost User

        Maybe with holepunching, you might want to look that up. You're right though, NAT is a major issue. And it doesn't look like it's going away soon (maybe with IPv6 - which isn't going to be actually here soon)

        E Offline
        E Offline
        evangile
        wrote on last edited by
        #3

        I won't wait on something that may come out solution already exist since some app are able corectly setting my gateway just they not well documented.

        L 1 Reply Last reply
        0
        • E evangile

          I won't wait on something that may come out solution already exist since some app are able corectly setting my gateway just they not well documented.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I don't really understand you, and I'm afraid I don't speak French.. What do you mean, exactly?

          E 1 Reply Last reply
          0
          • L Lost User

            I don't really understand you, and I'm afraid I don't speak French.. What do you mean, exactly?

            E Offline
            E Offline
            evangile
            wrote on last edited by
            #5

            trying to be more clear. My friend send me "hello" in chat on my IP 83.231...... port : 666 now i need forward this port so the message "hello" is redirected on my PC where the chat is instaled so i need forward port :666 send incoming soket to 127.0.0.1 one way to do it is manualy through gateway administration . second is Upnp.(wich wont work on half computer). third is what i search how msn/azureus/etc... do it on a non-upnp gateway.

            L 1 Reply Last reply
            0
            • E evangile

              trying to be more clear. My friend send me "hello" in chat on my IP 83.231...... port : 666 now i need forward this port so the message "hello" is redirected on my PC where the chat is instaled so i need forward port :666 send incoming soket to 127.0.0.1 one way to do it is manualy through gateway administration . second is Upnp.(wich wont work on half computer). third is what i search how msn/azureus/etc... do it on a non-upnp gateway.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Maybe they don't. MSN sure doesn't need it, all messages go through MS-servers (so beware..) Azureus could do without, speeds will suffer but oh well.. But in any case, I don't know how they it would even be possible to forward a TCP port without UPnP. For UDP ports you could use hole-punching.

              E 1 Reply Last reply
              0
              • L Lost User

                Maybe they don't. MSN sure doesn't need it, all messages go through MS-servers (so beware..) Azureus could do without, speeds will suffer but oh well.. But in any case, I don't know how they it would even be possible to forward a TCP port without UPnP. For UDP ports you could use hole-punching.

                E Offline
                E Offline
                evangile
                wrote on last edited by
                #7

                When i open msn it does config a port on my router i cheked it through admin it open an udp port maybe my box is preset to only allow msn do that. i'm prety sure my box has a upnp function just its maybe restricted to famous programme. so what is the principe of hole-punching TCP does it allow a server listen to this port and receive soket? is it how emule/azureus does work?.

                L 1 Reply Last reply
                0
                • E evangile

                  When i open msn it does config a port on my router i cheked it through admin it open an udp port maybe my box is preset to only allow msn do that. i'm prety sure my box has a upnp function just its maybe restricted to famous programme. so what is the principe of hole-punching TCP does it allow a server listen to this port and receive soket? is it how emule/azureus does work?.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  A router that would allow TCP hole-punching would be "broken". UPnP is "difficult", there are far too many different implementations in routers, some of them really generous and allowing even the most the malformed request to open a port, others nitpicking about the number of spaces and refusing to even tell what went wrong. Ok so MSN does open a port? It still shouldn't need it but ok.. could you see whether it was UPnP-forwarded or opened as the result of outgoing packets? The router can not know that it was MSN though, so whatever it did, you can do the same. I recommend you use WireShark/Ethereal to capture how it opens the port (and look at Azureus as well, of course)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups