ricky-davis / AstroLauncher

An easy to use Astroneer Dedicated Server installer and launcher
MIT License
213 stars 28 forks source link

Using Dynamic DNS URL instead of IP? #95

Closed AlvaroMartinezB closed 2 years ago

AlvaroMartinezB commented 2 years ago

Hi!

This is a question... Is there a way to use a URL instead of an IP? When I write the URL on the AstroServerSettings.ini it gets overwritten with my IP upon launch of AstroLauncher. The flag of OverwritePublicIP is set to false...

I thought maybe the URL on the game's client would point to the same IP as was configured on the server, but it just shows the server as Offline.

ricky-davis commented 2 years ago

The dedicated server itself does not support actual URLs. You can input them in the game client, but it will never work because servers won't even register with one, and the client will not resolve them. The PublicIP must be an actual valid Public IPv4 address.

Tokukarin commented 2 years ago

I don't get your question. The Astroneer Server doesn't need to know your URL in the first place.

I didn't played in a while but you should be able to connect with a URL If the game client allows it.

Tokukarin commented 2 years ago

Turns out this isn't possible the Astroneer client doesn't resolve URL's

AlvaroMartinezB commented 2 years ago
Yeah exactly… Sad given it should be a simple thing to do? Just resolver what IP is that URL pointing to? But we can’t do anything about it…   Sent from Mail for Windows From: ZenoSent: Saturday, January 1, 2022 2:00 AMTo: ricky-davis/AstroLauncherCc: AlvaroMartinezB; AuthorSubject: Re: [ricky-davis/AstroLauncher] Using Dynamic DNS URL instead of IP? (Issue #95) Turns out this isn't possible the Astroneer client doesn't resolve URL's—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: ***@***.***> 
Tokukarin commented 2 years ago

2022-01-02_20-15 This answers everything, devs just don't care.

AlvaroMartinezB commented 2 years ago

Sad... How does it work for servers you rent though? Are those abandoned too? That's sad

On Sun, Jan 2, 2022, 1:19 PM Zeno @.***> wrote:

[image: 2022-01-02_20-15] https://user-images.githubusercontent.com/50606374/147886934-24fd8375-6154-47c0-960a-4479c74708e8.png This answers everything, devs just don't care.

— Reply to this email directly, view it on GitHub https://github.com/ricky-davis/AstroLauncher/issues/95#issuecomment-1003762362, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLEZKT6WDQ43WRX6FQTEBDUUCQMFANCNFSM5K3DO6OA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ricky-davis commented 2 years ago

Rented Servers run the same software as self-hosted servers. The devs have little to no interest in updating the server software, any enhancements will have to be using what we have already, which is the point of AstroLauncher

Tokukarin commented 2 years ago

Dunno, I own a server to host stuff myself, If rented servers would work better I would be real mad.

ricky-davis commented 2 years ago

The only difference between self-hosted servers and ones you rent from GPortal / Nitrado, is that Xbox/Gamepass players can join the rented Servers. That's a security limitation from Microsoft though, nothing special about the server software itself

uweb1975 commented 2 years ago

Well so if they abandon the work on dedicated servers, will they also stop develop Astroneer itself further? So we can't use dynamic urls because the devs are abandon the reason I buyed the game? :( So many people wish dedicated server, because they hate it when public servers are suddenly closed and the work and fun of month is gone. I also dislike it to play on public servers, because you never know if you login after a few weeks if the world is still running.

ricky-davis commented 2 years ago

The devs have not "abandoned" anything, and are still working on the actual game. We just have no indication from them that they plan on fixing Dedicated Servers at all.

uweb1975 commented 2 years ago

thank you for your answer @ricky-davis so we should motivate the devs to fix up the client (which can't interprete the urls) so that we can use dynamic dns urls for our private servers at home. have somebody an idea how to automate it the ip change? when playing a game while dis/reconnected the gameserver is unreachable, so you have manually restart it, but it didn't work on every dis/reconnect. so i have to manually edit the server config and restart the astro-server. and after that i have to inform all players to reconnect to the world with new ip.

konsti219 commented 2 years ago

Sorry to tell you this but this more than just a client fix. It would need to be implemented across the whole server, client and backend infrastructure. That's because the server registers with a backend service and the client asks that first before ever connecting to the server. This is arguably stupid design, but the approach the team chose for complying with Microsoft's restrictions.

AlvaroMartinezB commented 2 years ago

Could be solved without modifying that behavior tho... Keep the server registered to the backend service with it's IP, Astro launcher handles any IP changes anyways. The devs would just have to resolve the URL on the client to figure out what IP that is pointing to. Then connect as usual using that IP. Would probably cause disconnections if the IP changed differently, but would require no user input to reconnect... Would just resolve the URL to the new IP

On Mon, Jan 24, 2022, 12:38 PM konsti219 @.***> wrote:

Sorry to tell you this but this more than just a client fix. It would need to be implemented across the whole server, client and backend infrastructure. That's because the server registers with a backend service and the client asks that first before ever connecting to the server. This is arguably stupid design, but the approach the team chose for complying with Microsoft's restrictions.

— Reply to this email directly, view it on GitHub https://github.com/ricky-davis/AstroLauncher/issues/95#issuecomment-1020419318, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLEZKRXX2N5AA74KVNDMYTUXWMCXANCNFSM5K3DO6OA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ricky-davis commented 2 years ago

Correct. DNS isn't a hard issue to solve, the devs just have given no indication they care about these issues

konsti219 commented 2 years ago

@AlvaroMartinezB That's just more jank on top of an already janky system. Servers need a big do over, which we will never get. Our only hope is some more advanced playfab interception to basically patch it on ourselves. But I'm not doing that.