Gateway port forwarding
-
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^^
-
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^^
-
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)
-
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.
-
I don't really understand you, and I'm afraid I don't speak French.. What do you mean, exactly?
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.
-
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.
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.
-
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.
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?.
-
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?.
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)