Friend can't join Minecraft server? (Ports are released)?

Mi
- in Servers
21

Me and my best friend finally want to play Minecraft together.

I created a server for this yesterday. Everything set & server started.

When he was with me yesterday and we played over LAN everything worked great.

Today we wanted to continue playing online. So I added my V4 IP address to the server.properties and started the server.

Which only worked for me, however. Since I don't have access to the router, I gave it the server data and entered its IP address instead.

Now it worked for him, but not for me. So we also released the two ports 25565 & 25575 in the Fritzbox with the two protocols TCP & UDP.

Then we restarted the server. However, I still can't join the server. I'm done.

Do we both have to open the ports for the server or just the one that hosts?

I ask you for help in solving this problem, because personally I have no more ideas.

Cr

It would be easier to use ngrok.

Mi

What exactly would that be?

an

You must not enter the IP in the server.properties! He just has to leave the field blank.
Only the person who hosts the server has to open port 25565.
After he has released the port he has to give you his public IP. He gets it here: https://www.whatsmyip.org/

You can then use this IP to join his server.

Gu

Actually, only the hoster has to have the ports open.

However, it is important to say that Internet providers in Germany are increasingly using https://de.wikipedia.org/..._(DS-Lite), which means that the end customer is not assigned a static ipv4, but gets one that is shared by thousands of customers. This in turn means that you can't open your own port.

To check whether the port is really open, you can check on the following website: https://www.yougetsignal.com/tools/open-ports/

an

Hasn't happened to me in 10 years with 3 different internet providers (Vodaphone, Telekom, O2). I very much doubt that this is "increased" like that.

Without IPv4 you can forget about Minecraft server hosting anyway, even if you could open ports. Minecraft doesn't support IPv6.

Gu

Vodafone has been doing this by default for cable customers for years.

I know this because I'm a Vodafone customer myself and I also know a lot of other Vodafone customers.

You can get a "real" ipv4 by setting the standard Vodafone router to birdge mode and attaching your own router to it.

an

A program to (among other things) host a Minecraft server without port sharing. Only the hoster has to install it.

Find port forwarding but much easier. But it's good if you don't have access to the router (e.g. Because of parents) and don't want to fall back on things as outdated as Hamachi.

an

So I'm in the Vodafone network (or Kabel Deutschland) and have - with a router from those where I haven't changed anything - an IPv4. And also ne IPv6.

Gu

Yes, that would be either DualStack or DualStack-Lite.

Either you are lucky and have DualStack, or you have DualStack-Lite, where you can't open a port.

Mi

We have already tried your variant. Unfortunately, it still didn't work.

an

This is not a "variant" but the only way. But yo, then you did something wrong.

What your friend has to do:

Download the server, confirm Eula, start the server, stop the server after it has started completely. DO NOT enter the IP in the server.properties.
Open router settings, release port 25565 TCP and UDP
Go to this page https://www.whatsmyip.org/ and copy the IP from there. (Yes, don't try to determine the IP via the console, you get the LOCAL IP. You can recognize it by the fact that it starts with 192.168 … Or something like that. You can't do anything with that. You need the public one, you get it on a page like the one linked above.)
He has to give you the IP that has just been determined

What you have to do:

Connect using the IP.

Mi

Well, we've already tried a free Minecraft server from aternos.org before. It's public, runs so far and we both get it. But at some point the server hangs behind with 1500-2000ms and up.

an

In my experience, Aternos only lags when you walk through the world and generate new chunks in the process. Otherwise it always runs smoothly for me. You could pre-generate the world in single player and then upload it. Or just walk around for 20-30 minutes and explore the area (it will lag a little more if I do it in pairs) so that you won't have any more lag in the future.

Mi

That's exactly what we did. We took the V4 IP address with 192.168 … From the ipconfig with CMD. That's exactly what I tried to connect with. But nevertheless it still says: Connection can't be established.

an

Read again what I wrote, then you will know why it is not possible. ^^

Yes, do not try to determine the IP via CMD, because you get it
LOCAL IP. It can be recognized by the fact that it starts with 192.168 … Or something like that
. You can't do anything with that. You need them
public ones that you get on a page like the one linked above.

St

A little addition:

A firewall popup should appear on Windows, if you do not click on allow, it will not work
UDP is actually superfluous, Minecraft only uses TCP

an

Small background:

There are two types of IP: Local and Public.

A router assigns the local IP to all devices in its network.

E.g. Your router gives your PC 192.168.0.2, your mobile phone 192.168.0.3, etc.

Using this IP (which starts with 192.168 …) the router can identify the individual devices in its network and communicate with them. Outwardly, this IP is completely useless and meaningless, it only makes sense within the network. When communicating between router and device.

The public IP, on the other hand, is distributed by the Internet provider (e.g. Telekom) to the customers' routers. So every customer has an IP. So your wireless router gets an IP. (And it does NOT start with 192.168). This is the address that you have ON THE INTERNET. All devices connected to this router share this IP on the Internet.

Of course, you need the address from your friend that he has on the Internet, i.e. Externally. The public. He sees them here, for example. https://www.whatsmyip.org/

ipconfig in the CMD, on the other hand, supplies the local IP address that its router gave its device - it is of no use to you.

Mi

First of all thanks for your answers. We FINALLY got it. The one from the website worked even though it doesn't start with 192.168 … But with 77.0 … I mean, I would have tried it out directly, but now it suddenly works, strangely enough. Definitely thanks to both of you.

an

Thanks for the addition.

I think it's best to unblock TCP and UDP.

Apparently you need UDP if in the server.properties

enable-query = true

is set. https://www.spigotmc.org/...25565.571/. Unfortunately, I don't know what exactly a Minecraft Query is and what it's good for.

It is also advised everywhere on the Internet to share both:

https://www.quora.com/What-ports-do-I-need-open-up-for-a-Minecraft-server

https://praxistipps.chip.de/...ehts_36529

But yes, TCP alone also transmits.

an

Although it doesn't start with 192.168…

Not even though, but precisely because of it.

Please ^^

Have fun with you and your buddy!

St

This is a protocol for querying general server information. You only need this if you want to use external tools with corresponding queries, since Minecraft itself does this via TCP.

The full information is here, pretty much the only detailed source on Minecraft's log: https://wiki.vg/Query