Skip to content

Conversation

@omegacord
Copy link
Contributor

old method return ip 0.0.0.0

@bloodycop6385
Copy link
Contributor

bloodycop6385 commented Sep 3, 2025

What I'd suggest is removing ix.util.GetAddress() and replacing all of it's instances with game.GetIPAddress()

@omegacord
Copy link
Contributor Author

then it will be necessary to do it on one line)
изображение

@alexgrist
Copy link
Member

alexgrist commented Sep 3, 2025

Have you ensured this actually works? The wiki page for game.GetIPAddress() states:

Returns "0.0.0.0:port" on the server when called too early, including in GM:Initialize and GM:InitPostEntity. This bug seems to only happen the first time a server is launched, and will return the correct value after switching maps.

@omegacord
Copy link
Contributor Author

yes, I use this fix in my project, everything is saved correctly in the database
изображение

@alexgrist
Copy link
Member

Ideally I'd suggest just remove the function and replace it's only usage, but it would probably need a deprecation error message and it's more effort for a simple IP address function.

@alexgrist alexgrist merged commit 7fe4d68 into NebulousCloud:master Sep 3, 2025
2 checks passed
@omegacord omegacord deleted the patch-1 branch September 3, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants