Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a way to display local IP when server start #210

Open
lucastucious opened this issue Jun 19, 2023 · 4 comments
Open

Make a way to display local IP when server start #210

lucastucious opened this issue Jun 19, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@lucastucious
Copy link

Similary to the %PUBLICIP% variable we had, can we have a %LOCALIP% that display lan IP (192.168.0.x) ?

@nwesterhausen nwesterhausen added the enhancement New feature or request label Jun 19, 2023
@lucastucious
Copy link
Author

lucastucious commented Jun 19, 2023

For the records of the use case, i have 2 separate launcher for my dedicated server. One that enable crossplay and work online, and another to disable crossplay, when we play LAN.

Since it's 2 different method to launch the server even on vanilla valheim.

Anyways to lookup for this, and display a different message based on -crossplay argument?

@nwesterhausen
Copy link
Owner

You have an option to set one of the message variables to be something to indicate this. For example on one of the servers you can set %VAR1% to say "LAN Server" and on the other server set it to "Crossplay Server".

Is it the case that you use the exact same configurations of everything and only change the launch message?

I think there probably is a way to determine if crossplay is enabled which I could add, but I have to figure that out.

@lucastucious
Copy link
Author

lucastucious commented Jun 20, 2023 via email

@nwesterhausen
Copy link
Owner

No sorry for confusion, you cannot set that in command line. I will see what I can do about adding something like %CROSSPLAY% to be something that displays one thing when crossplay and something else if not (both set by your config).

The way I'm determining the IP address is from the game itself, asking it what its public IP is. I don't want to fiddle around and detect something on my own if I don't need to.

@nwesterhausen nwesterhausen self-assigned this Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants