I can join my minecraft server, but my friends can't
I am hosting a 1.12.2 Minecraft server on my spare PC and I can join the server but my friend cannot. My 25565 port is open and my firewall is disabled. What can I do?
46 Replies
Short guide on port forwarding
What is port forwarding??
port forwarding is a technique used to allow external services/things access the device. For example port 22 is usually open to allow SSH connections from outside the computer. Without port 22 being opened you wouldn't be able to SSH into the device. Minecraft needs certain ports open for others to be able to join.
People will often be opening ports for various reasons such as maybe them wanting to host a website/web panel, wanting to create a database (MYSQL) and more.
How do i port forward?
- hosts usually will do port forwarding for you by default but some will either open more on request or just give you a section to open ports so check your control panel!
- Self hosted/your own device You'd need to head to your router configuration homepage and open it. As everyone uses a different provider you'll need to search "How do i open ports on X provider" (example provider is verizon)
- VPS will usually have something on the dashboard manager that lets you control the network security things such as what ports are open. Just google how to open port on your VPS provider.
- Linux users might need to mess with Iptables or ufw for ubuntu (This guide was written for Ubuntu 20.04 so other versions may have different syntax. other linux flavours have different ways. So please do some research before blindly trying something)
How do i check if my port is open?
You can use this port scanner or dnschecker's port scanner which allow multiple port scans.
Please do not attempt to port forward unless you're fully aware of what it is, what it does, the dangers and how to properly do it. It'd be pretty embarrassing if you lost access to your VPS because you closed port 22
my port is open in the router settings but the website says closed
!cgnat
We may have bad news for you :C
Open your router's configuration interface. Somewhere you'll see something like 'external' or 'public' IP.
If your external IP is in one of the following ranges, you're basically screwed as long as portforwards go:
- 10.0.0.0/8
- 172.16.0.0/20
- 192.168.0.0/16
- 100.64.0.0/10
- any IPv6 address/range - This shouldn't be a problem, but Minecraft's IPv6 support is still rather quirky. You're at your own but we're happy if you share your experience.
You should ask your ISP for a public and IPv4 address (but this may cost you money).
NB: your internal IP should and most probably will be in one of the first three ranges, don't mix them up
Admincraft Canned Responses
Also
!selfhost
Home hosting has its drawbacks / caveats
- Is your internet connection fast enough? In both directions (around 50M is usually enough; you should check here)? You don't connect the server to your router via WiFi, do you?
- Does your ISP provide a somewhat static, public, IPv4 address?
- Are you aware and able to deal with the security impliations?
- Is your computer powerful enough to run both a client and a server?
- Does any inhabitant (human or not!) mind the noise, heat and energy cost of a machine running 24/7?
- Alternatively, is your playerbase OK with the server not being there when you aren't?
Admincraft Canned Responses
None of this is a problem for me and I'm just hosting the server to play with 1 trusted person
I do not think my IP is in those ranges. The first 2 collumns match but the rest is out of those ranges
Assuming 0/20, 0/16 and 0/10 means all numbers between 0 and 20 and the rest of the other IP's
check ur router's wan page
wait where are u getting the ip u send
Copied the IPv4 address of host computer using ipconfig
is it the same u get when searching "what is my ip"
on google
Nope not at all that spits out a completely different number
thats ur external
give that to him
you might have given him ur internal one
Do I need to reconfigure port forwarding for the new IP or leave it at the internal
leave at internal iirc
And I should also send it with :25565 at the end right?
nop
not needed
Ohh
Thanks a lot, will give it a try in a little bit, I'll post an update on this post
It still says 25565 closed in the port checker website with the external IP tho
No, those / numbers are CIDR notation. Indicating a large range of addresses
IE 10.0.0.0/8 means everything from 10.0.0.0 to 10.255.255.255.
172.16.0.0/20 means 172.16.0.0-172.32.255.255 (or something close, working on memory here)
oh damn so I am just boned
Maybe, did you check the WAN address of your router to see?
I don't mean the LAN address, the internet facing one.
You'd have to log into your router to check.
There is an IPv4 under a tab called WAN_INTERNET
What's the first two numbers on that?
First two numbers are 10.253
Oh you're fucked
God damnit
Call isp and ask for a dedicated IP
Or use ngrok, playit.gg, or VPN to a VPS and NAT over your VPN.
If I know anything abt my isp its that me getting a dedicated IP would take an unbelieveably long amount of time
How complicated would this be
really easy
for playit.gg and ngrok
The first two? Really easy
The last? A touch involved
Ipv6 is the devil
As long as NAT exists ipv4 will survive
:COPIUM:
I remember seeing that IPv6 is not supported and I dont really want to get into the works of devil
Minecraft fully supports ipv6
Oh I meant from my router
I saw that somewhere I can't remember where
and i cant find it either
Ipv6 isn't really the devil, it just is multiple times "harder" to conceptualize than ipv4
I see, might look into it as my last resort
I myself wouldn't even attempt it
Wouldn't even put it on my list of considerations
Damn u convinced me im not even thinking abt that now LUL
Do u know of any documentation or something about those two things you mentioned?
ngrok and playit.gg things
Or will I be good just following the flow of things
Google would be best resource for them
They ezpz
But really. Might be worth calling isp and just asking them to switch you from CGNat to a real publicly available IP
Got it, I'll see what I can do with talking with my isp and in the mean time I'm going to check out the other options you mentioned
They wouldn't pick up the call at 12 am :LUL:
My isp has 24/7 support
Hell nah mine has like 8/6 only if ur lucky lmao
:DESPAIR:
Still thanks a lot, will probably return for more questions later. Should I do anything with this forum post or just keep it open like this
You can mark as solved if you wish :)
Alrighty, take care <3