Wednesday, 4 September 2019

port - Game server - How can I block connections from other countries?


I have a small server at home that I plan on putting a few game servers on, but I want to make sure only people from my country can join it.


Is it possible to filter connection attempts to my server based on port? Say a game runs on port 12345, could I block all international traffic to that single port?



Answer



Well, of course it is possible, you simple need a database like Maxmind or IPLocation (http://www.ip2location.com), there you will find the information needed.


Regarding the port, you can use any opensource firewall to filter any access to that port coming from outside your country.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...