StrangeLoopGames / EcoSuggestions

Repo for storing Eco game suggestions, separate from EcoIssues
35 stars 1 forks source link

[NETWORK] hostname - SRV Record #42

Open BlazeGuy2 opened 6 years ago

BlazeGuy2 commented 6 years ago

From @Hagigamer on May 23, 2018 9:35

Hi guys,

I have a server behind two firewalls, which is usually referred to via domain name. So before the change to udp, everyone was able to connect to "sub.domain.de:3000" - with the change to udp this does not work anymore. the webinterface on 3001 is still fine. Connecting to the game server is still possible when directly connecting to the IPv4 of my external facing firewall, which then redirects to the internal firewall which redirects to the server - so basically a classic DMZ.

Would the implementation of SRV Record support like teamspeak resolve this issue? I believe I am not the only server hosting guy who has this problem.

This is an explanation how one sets up the SRV Record for teamspeak - might want to add something similar for eco. https://www.namecheap.com/support/knowledgebase/article.aspx/9766/2208/how-can-i-link-a-domain-name-to-teamspeak-3

Copied from original issue: StrangeLoopGames/EcoIssues#7844

BlazeGuy2 commented 6 years ago

From @elfl0rd on May 29, 2018 19:21

like it.

ewoudje commented 3 years ago

This would be very handy

redwyre commented 3 years ago

I'm not sure what problem this is trying to solve. A SRV record isn't going to change the fact that you need to correctly forward the ports from your external IP through any firewalls to the server.

ewoudje commented 3 years ago

I am also not sure how that would fix his issue but the srv record would be very handy to be able to use other ports without the 'ugly' port behind it.

Stargateur commented 1 year ago

SRV Record should be used in modern software. Fun fact Factorio has it. Implementation is quite simple. It's more user freindly to say server is at eco.toto.com than eco.toto.com:4566 or worse with an ipv6 (that ECO doesn't handle directly for no reason !)

redwyre commented 1 year ago

Using a server ID is the recommended way to connect to servers as it has some advantages over a direct connection. You can now use a eco://connect/<server-id> link which will launch the game directly.

Even with SRV for the game server port, that doesn't help with the web server port which needs the port or uses a reverse proxy internally.

I've created a task but it's obviously a low priority task, IPv6 support is also already on the list.

Stargateur commented 1 year ago

Even with SRV for the game server port, that doesn't help with the web server port which needs the port or uses a reverse proxy internally.

That less a problem cause you can config the server to open the web ui with the good port if needed. And yeah proxy, I used one to use https anyway so.

Using a server ID is the recommended way to connect to servers as it has some advantages over a direct connection. You can now use a eco://connect/ link which will launch the game directly.

That is new for me, wiki only talk about this here, problem this doesn't launch the game with steam and so you don't get steam features, and you are require to use SLG account to connect. Thus it's look to work. Also, only windows.

redwyre commented 1 year ago

It works with steam, in either case you just need to run the game once before they are set up, but yes it's windows only for now.