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

Binding error when starting server #120

Open
kishelly opened this issue Aug 4, 2021 · 5 comments
Open

Binding error when starting server #120

kishelly opened this issue Aug 4, 2021 · 5 comments

Comments

@kishelly
Copy link

kishelly commented Aug 4, 2021

Hi! I was trying to create a server with the server example code here: https://github.com/PrismarineJS/bedrock-protocol/blob/master/examples/serverReadmeExample.js.

I run it with node serverReadmeExample.js after doing npm install bedrock-protocol

but I can't get to get it to connect in the Minecraft game on an iPhone. this is the error I get when starting the server:

Unknown bind__() error -1; port 19132.

When I add the server to the list with the right address, it gets stuck at connecting and then disconnects, and nothing else is printed in the terminal.

Any suggestions? I'm not very good at JavaScript, maybe I'm doing something wrong or is iPhone client just not supported? ty!

@extremeheat
Copy link
Member

extremeheat commented Aug 4, 2021

Hi, what version are you connecting from? Are you sure you're connecting to the right IP address and port? (19132). Do you see the server MOTD on the server list when you add it?

And yes, Minecraft bedrock edition encompasses both the mobile, console and windows store version of Minecraft so it should work. Perhaps we should clarify this in the readme.

@kishelly
Copy link
Author

kishelly commented Aug 4, 2021

@extremeheat thanks for the quick reply. I'm fairly sure this is because the error I posted. it says it can't correctly bind the port but nothing is actually blocking it?🤔 my minecraft game version is 1.17.10. where can I find the MOTD?

@kishelly
Copy link
Author

kishelly commented Aug 4, 2021

think I've gotten it to work. thanks for the help! it's a bit odd that error is printed, though.

@kishelly kishelly closed this as completed Aug 4, 2021
@extremeheat
Copy link
Member

Yes, I agree this misleading error needs to be removed. I'm not sure exactly where the message originates, but it's possible it's an issue related to IPv6 binding inside of raknet. However, as long as binding to the IPv4 address works, clients should be able to connect.

@extremeheat extremeheat reopened this Aug 4, 2021
@extremeheat extremeheat changed the title Unable to connect to started server with iphone Binding error when starting server Aug 9, 2021
@wayjake
Copy link

wayjake commented Nov 29, 2024

I'm seeing this in Ubuntu and Debian. It sounds like it's just something worth ignoring?

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