Ask coding questions

← Back to all posts
How to connect to server?
8O4k

Im just wondering what ip I would use in order to connect to the server, I have tried this URL, https://MCBE-Server.8o4k.repl.co on port 19132, but it does not recognize the server.

Voters
8O4k
Comments
hotnewtop
Highwayman

That’s because your server stops the second it starts:

Highwayman

Get rid of line 5, rerun the server, and try again. @Highwayman

8O4k

@Highwayman
Thanks I will try, I just used that for web view

8O4k

@Highwayman It didn't work, still "Unable to connect to server", because the node.js server blocks all connections until its exited

Highwayman

Maybe it’s your port - it seems a bit high… maybe set it to something like 3000 or 8000 instead of 10000+ @8O4k

8O4k

Im not talking about the node.js, im talking about the MC port, its in server/server.properties, I have it set to 19132 which is the default port for mc, it says ipv6 is disabled, that might be [email protected]

Highwayman

Hummmmm I think this probably over my head then... Why don’t you try changing the number in index.js and server/server.properties…?
@8O4k

8O4k

@Highwayman They are both different numbers, I have one set to 3000, and one set to 19132

Highwayman

Then…idk. @8O4k

8O4k

@Highwayman I believe its the port, I made a new repl and instead of using Nix, I used bash.

Highwayman

Did it work..? @8O4k

8O4k

@Highwayman Kinda, I found out why, it uses localhost, and I don't believe it works with localhost, so I'm trying to use NGrok rn for the server IP

Highwayman

Oh, yes that is true.. @8O4k