yourmnbbn / tiny-csgo-server

Tiny csgo server for logging on to steam game servers, basically it's a fake server, not for real server purpose.
GNU General Public License v3.0
33 stars 4 forks source link

Binding to selected IP #1

Open toorisrael opened 2 years ago

toorisrael commented 2 years ago

Is it possible to bind server to only one, selected IP address? I've read this, which suggests it's not possible.

yourmnbbn commented 2 years ago

I have never tried to bind a specific ip address when using socket. But there are many other implementations that can have the same effect. If the os level can't correctly apply the address and port filter, you can just write your own filter in the program.

You can also try to initialize this endpoint with a specific address to see if this can restrict the receiving address. https://github.com/yourmnbbn/tiny-csgo-server/blob/570610583ed1cfdc75fb3119681dd02acffb4de0/src/server.hpp#L87