gro-ove / actools

Alternative launcher for Assetto Corsa named Content Manager, and some utils as well.
http://acstuff.ru/app
Microsoft Public License
574 stars 71 forks source link

Server Domain Name support? #20

Open ajmwagar opened 4 years ago

ajmwagar commented 4 years ago

Is it possible to add support for hostnames (i.e. ac.wagar.cc)?

Right now I need to provide the IPv4 address of my server (which is not static). I have Dynamic DNS setup on a handful of domains. But I'm unable to find a way to replace the IPv4 address of the server in the online server browser.

My server IP is in IPv4: 174.21.145.18 I have a Dyn DNS entry at ac.wagar.cc which points to 174.21.145.18.

Is it possible to add support to use ac.wagar.cc in the Content Manager server browser? Rather than the raw IP?

Also - adding support for invite links to contain hostnames would be a nice addition. (i.e. https://acstuff.ru/s/q:race/online/join?httpPort=8083&ip=174.21.145.18) but adding support for domain names.

I'm not sure if this is possible - or within your control. However, it'd save me a huge headache of resending out invite links whenever my server's IP changes.

I'm using the Assetto Corsa Server Manager - which has a Content Manager Integration (allowing me to create links on the fly). If it's an issue on their end - I can close this and open an issue with them.

Please let me know if you have any questions.

Best,

Avery

ajmwagar commented 4 years ago

Playing around with your invite link system: I'm able to replace the IPv4 address with a hostname: image

But it says the ping doesn't work (note, it still loads the correct car and track info).

ajmwagar commented 4 years ago

Trying to favorite that server listing causes an error in the Favorites page: image

ajmwagar commented 4 years ago

Trying to launch a session with one of these entries causes another error: image

This seems to be an Assetto Corsa issue.

A possible solution would be to do a DNS lookup and give AC the IPv4 address that gets returns at launch time. That way you can have support for Dyn DNS and hostname - while giving Assetto the correct server address.

ajmwagar commented 4 years ago

I'm not super familiar with C# but I do a fair amount of Network programming in Rust. I can take a shot at creating a PR to resolve this issue.

Anyways, thanks for creating this great tool. The WIP features are coming along nicely.