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

the server cannot be discovered or the port changed #5

Open
estoyarto opened this issue Feb 13, 2023 · 4 comments
Open

the server cannot be discovered or the port changed #5

estoyarto opened this issue Feb 13, 2023 · 4 comments

Comments

@estoyarto
Copy link

HI!
When I try to change the port to 25565 it never changes, when I look at the settings again it goes back to 19132. Even the file server.properties the port goes back to 19132 again if I try to do it manually in the file.
And the minecraft client can't find the server.
But if I use the original docker image outside of HA it works fine.

the log show this:


time="2023-02-13T17:54:23-03:00" level=debug msg="Using /share/minecraftbe to match uid and gid"
time="2023-02-13T17:54:23-03:00" level=debug msg="Resolved UID=0 from match path"
time="2023-02-13T17:54:23-03:00" level=debug msg="Resolved GID=0 from match path"
Looking up latest version...
Downloading Bedrock server version 1.19.61.01 ...
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2023-02-13 17:54:40:643 INFO] Starting Server
[2023-02-13 17:54:40:643 INFO] Version 1.19.61.01
[2023-02-13 17:54:40:643 INFO] Session ID 41045b08-a264-4aa9-895d-e80718d16e58
[2023-02-13 17:54:40:644 INFO] Level Name: Bedrock level
[2023-02-13 17:54:40:835 INFO] Game mode: 0 Survival
[2023-02-13 17:54:40:835 INFO] Difficulty: 1 EASY
[2023-02-13 17:54:40:977 INFO] opening worlds/Bedrock level/db
[2023-02-13 17:54:42:119 INFO] IPv4 supported, port: 19132: Used for gameplay and LAN discovery
[2023-02-13 17:54:42:119 INFO] IPv6 not supported
[2023-02-13 17:54:42:664 INFO] Server started.
[2023-02-13 17:54:42:714 INFO] ================ TELEMETRY MESSAGE ===================
[2023-02-13 17:54:42:714 INFO] Server Telemetry is currently not enabled.
[2023-02-13 17:54:42:714 INFO] Enabling this telemetry helps us improve the game.
[2023-02-13 17:54:42:714 INFO]
[2023-02-13 17:54:42:714 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
[2023-02-13 17:54:42:714 INFO] to the server.properties file in the handheld/src-server directory
[2023-02-13 17:54:42:714 INFO] ======================================================


Is there a way to change the port correctly?

Thanks in advance!

@jdeath
Copy link
Owner

jdeath commented Feb 13, 2023

Ok. I just checked, it does not seem to let you change it in /share/minecraftbe/server.properties . I am not sure why! Maybe because it cannot escape the docker network created in homeassistant.

However, the addon itself will map 19132 to whatever port you want. So leave it as 19132 in server.properties and change the port in the homeassistant addon configuration tab.

But, I would stay away from 25565 port, as that the is default JAVA minecraft port. Bedrock clients may not want to use it.

@estoyarto
Copy link
Author

No luck for me. i leave the default port and still can't connect, the client can't find it even if i put the port. The strange thing is that if I use the image in docker and create a separate container, it works correctly. But home assistant gives me an error that I can't use containers outside of the home assistant ecosystem.

@jdeath
Copy link
Owner

jdeath commented Feb 14, 2023

Weird sorry. Not sure why not working for you. I changed the port in homeassistant addon tab and I was able to join by making a custom server by specifying the port.

@DDanii
Copy link
Contributor

DDanii commented Sep 1, 2023

@estoyarto Do you pressed save after changing the port?

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

No branches or pull requests

3 participants