Peer to peer communication from behind the NAT
-
Hello, My setup is probably not much different from many others: I have a router (LinkSys) at home that assigns home machines internal IP addresses. I have written an application that I would like to test from outside world. It's a vanilla socket communication: the application listens to a specific port. The problem is that the only public IP address I have is the one assigned to my DSL modem by my ISP, and all computers are connected to the net via a router. Is there a common technique to make a machine visible for peer-to-peer communication for such setup? Thanks in advance. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
-
Hello, My setup is probably not much different from many others: I have a router (LinkSys) at home that assigns home machines internal IP addresses. I have written an application that I would like to test from outside world. It's a vanilla socket communication: the application listens to a specific port. The problem is that the only public IP address I have is the one assigned to my DSL modem by my ISP, and all computers are connected to the net via a router. Is there a common technique to make a machine visible for peer-to-peer communication for such setup? Thanks in advance. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
In almost every firewall I've ever seen you can define traffic originating on certain ports to go to specific private IP addresses. So for example if your application listened on port 55044 and your listening machine had a private IP address of 192.168.0.100 you could (in the firewall) create a rule that allows traffic from the WAN on 55044 to be forwarded to 192.168.0.100 and you should be in business. You cannot do port translations on a linksys. For example traffice coming in on 80 gets translated to 8080. You need some higher end devices for that. - Rex
I only read CP for the articles. Code-frog System Architects, Inc.
-
In almost every firewall I've ever seen you can define traffic originating on certain ports to go to specific private IP addresses. So for example if your application listened on port 55044 and your listening machine had a private IP address of 192.168.0.100 you could (in the firewall) create a rule that allows traffic from the WAN on 55044 to be forwarded to 192.168.0.100 and you should be in business. You cannot do port translations on a linksys. For example traffice coming in on 80 gets translated to 8080. You need some higher end devices for that. - Rex
I only read CP for the articles. Code-frog System Architects, Inc.
Thanks! By saying that I can not do port translation on a LinkSys do you mean that I can still do firewall configuration that you mentioned (e.g. forward communicatino on port 55044 to private IP 192.168.0.100)? Or LinkSys routers is not capable of even this function? Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
-
In almost every firewall I've ever seen you can define traffic originating on certain ports to go to specific private IP addresses. So for example if your application listened on port 55044 and your listening machine had a private IP address of 192.168.0.100 you could (in the firewall) create a rule that allows traffic from the WAN on 55044 to be forwarded to 192.168.0.100 and you should be in business. You cannot do port translations on a linksys. For example traffice coming in on 80 gets translated to 8080. You need some higher end devices for that. - Rex
I only read CP for the articles. Code-frog System Architects, Inc.
code-frog wrote:
You cannot do port translations on a linksys. For example traffice coming in on 80 gets translated to 8080. You need some higher end devices for that.
Funny, works fine on my Linksys ;) - Anders
-
Hello, My setup is probably not much different from many others: I have a router (LinkSys) at home that assigns home machines internal IP addresses. I have written an application that I would like to test from outside world. It's a vanilla socket communication: the application listens to a specific port. The problem is that the only public IP address I have is the one assigned to my DSL modem by my ISP, and all computers are connected to the net via a router. Is there a common technique to make a machine visible for peer-to-peer communication for such setup? Thanks in advance. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
There's also uPNP, which can be used for dynamicaly configuring port forwarding on compatible devices. My linksys supports it. Never done it myself, but this looks like a good guide[^]. Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette
-
code-frog wrote:
You cannot do port translations on a linksys. For example traffice coming in on 80 gets translated to 8080. You need some higher end devices for that.
Funny, works fine on my Linksys ;) - Anders
What LinkSys do you have, Anders? WRT54G? Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
-
There's also uPNP, which can be used for dynamicaly configuring port forwarding on compatible devices. My linksys supports it. Never done it myself, but this looks like a good guide[^]. Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette
Thanks, but my LinkSys does not have such configuration pages. I have only LinkSys WRT54G access point. Perhaps it's more limited. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
-
Thanks, but my LinkSys does not have such configuration pages. I have only LinkSys WRT54G access point. Perhaps it's more limited. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
It may still support uPNP, try checking the "Show Icons for Networked UPnP Devices" in your connections explorer window. Or look on the box :) Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette
-
It may still support uPNP, try checking the "Show Icons for Networked UPnP Devices" in your connections explorer window. Or look on the box :) Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette
Thanks Ryan! I'll give it a try. Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
-
What LinkSys do you have, Anders? WRT54G? Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.
WRT54GC - Anders
-
Thanks! By saying that I can not do port translation on a LinkSys do you mean that I can still do firewall configuration that you mentioned (e.g. forward communicatino on port 55044 to private IP 192.168.0.100)? Or LinkSys routers is not capable of even this function? Вагиф Абилов MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey.