Setting up a server can be tricky! I'll try to help.
But I have one burning question:
Are you trying to share your server on your computer through your phone's internet?
If yes, it (probably) will not work. Most cell providers don't allow sharing ports over mobile internet. If they do, it's usually limited, and they might give you one port to use. (Some cable and DSL providers also don't allow port forwarding.) If this is your situtation, you'll probably want to setup a VPN. Not like the one's you see online, but hosting your own VPN server for other people to join. There are other solutions (proxies, reverse dns, etc), but they get more complex.
If no, and your internet provider
allows public ports, then there's a few things I think it could be:
Disable your computer's firewall (on Windows, it's under Windows Defender. On Mac, look under Networks.)
You can
try scanning for any open ports using this public port scanning tool. Minecraft servers normally use 25565 or 19132-19133.
Check what IP address the server is "bound" to. If it is bound to just 'localhost' then only your computer can join. Set the bind address to 0.0.0.0
Port Forwarding.Maybe you missed a step? Here's my short guide:
(These steps are general, as every router is different):
- Log in to your router (usually http://192.168.1.1 in North America; elsewhere, try http://10.0.0.1 or check your router's bottom for instructions)
- Find your computer's IP address on the router devices page, sometimes called DHCP clients
- Locate the 'port forwarding' settings page
- Enter your computer's IP from step 2
- Set both outgoing and incoming ports the same (for a Java server, 25565; for a Bedrock server, 19132-19133). If you set custom port(s), use those instead.
- Enable UDP and TCP for both Java and Bedrock
- Enable or allow port forwarding
- Save your settings, restart your router
- Bear with me (I'm sorry you asked me not to), go to Google, and search for 'what is my IP.' It will tell you your public internet IP, different from the private local IP in step 2.
- Share that IP with others you want to join. If they're on the same network, give them the IP from step 2.
If none of this made sense, or it didn't help, my bad, just let me know!
More questions I have:
- Are you trying to play the game on the same device running the server?
- Java or Bedrock?
- Are you using Windows, Mac, or Linux?
- What is your network setup? Do you have a router with Wi-Fi, or is it just your phone?
- Any mods?