Option A: Router Port Forwarding
- Log into your router’s admin panel (typically
192.168.1.1or10.0.0.1). - Locate the Port Forwarding or Virtual Servers section.
- Create a new rule pointing to the local IPv4 address of your computer.
- Set both the Internal Port and External Port to
25565(or whatever port your server runs on). - Set the protocol to TCP/UDP.
- Save and apply. Players can now connect using your public IP address.
Option B: Tunneling Services (No Port Forwarding Required)
If you cannot access your router or your ISP uses Carrier-Grade NAT (CGNAT), you can use tunneling services to expose your local server.- Playit.gg: A free global proxy specifically designed for gaming. Download the agent, run it alongside your server, and it provides a public IP and port automatically.
- Ngrok: A generalized tunneling tool.
Ngrok’s free tier assigns a randomized port every time you restart it.