How to safely connect Debian computers over the internet for games is my question really.
I want to play the pacman type game called Njam with a someone in another part of the world.
i can connect and play Njam between two computers on the LAN in my house. To get that working, I needed to created a rule in the ufw firewall on each computer.
On computer A 192.168.0.101 ALLOW IN 192.168.0.102
On computer B "192.168.0.102 ALLOW IN 192.168.0.101".
-------------------------------------
Now I want to connect to a computer on the internet. To try this, I connected computer B to a vpn.
Then I created a new rule, like the rules above, in the ufw firewall using computer B's WAN ip address.
However the computers did not connect.
Any suggestions on how to do this?
Thanks
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
how do I get netwok games to connect over wan [SOLVED]
how do I get netwok games to connect over wan [SOLVED]
Last edited by Bob C on 2020-12-26 16:48, edited 3 times in total.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: how do I get netwok games to connect over wan
If you're connecting to the internet through a router then I think you will have to enable port forwarding on the router and also open the relevant port(s) in the router's firewall.
deadbang
Re: how do I get netwok games to connect over wan
Another thing you can do is try zerotier
https://www.zerotier.com/
Basically, once you install clients on all devices and connect them to same zero tier network, it will behave like another lan network, so all you would need is get ip of devices inside zerotier network and use it as local one. That is how I did some games that didn't play nicely with router forwarding.
https://www.zerotier.com/
Basically, once you install clients on all devices and connect them to same zero tier network, it will behave like another lan network, so all you would need is get ip of devices inside zerotier network and use it as local one. That is how I did some games that didn't play nicely with router forwarding.
Re: how do I get netwok games to connect over wan [SOLVED]
Thanks for the help.
I was able to play njam over the internet, by setting up port forwarding in this general way;
1. [configure router] Access the configuration GUI of the router, by entering the router’s LAN IP address into a web browser.
2. [configure router] In the Forwarding section enter the LAN IP address of the computer which is running the game server
3. [configure router] In the Forwarding section enter the port number used by the game
4. [configure computer running game server] In the firewall of the computer, add a rule to allow in the port number used by the game
5. Someone running the game client and connecting over the internet enters my WAN ip address, which gets them to the router, which was set up for port forwarding as described above.
For security when not playing the game, the router allows the port forwarding rules to be disabled.
I was able to play njam over the internet, by setting up port forwarding in this general way;
1. [configure router] Access the configuration GUI of the router, by entering the router’s LAN IP address into a web browser.
2. [configure router] In the Forwarding section enter the LAN IP address of the computer which is running the game server
3. [configure router] In the Forwarding section enter the port number used by the game
4. [configure computer running game server] In the firewall of the computer, add a rule to allow in the port number used by the game
5. Someone running the game client and connecting over the internet enters my WAN ip address, which gets them to the router, which was set up for port forwarding as described above.
For security when not playing the game, the router allows the port forwarding rules to be disabled.