I'm trying to run my minecraft server and port forward it. The port is 25565 (minecraft default).
I have port forward the port and check with portchecker.co.


The server works on my local ip, but when I enter my public ip on to minecraft, it says Can't connect to server.

Please note that I am new to port forwarding

  • Some routers do not support hairpinning. In short, this means that using the public IP for the network (e.g. from a computer on that same network will not work, even if people outside your network can otherwise connect to e.g. your Minecraft server. Dec 9, 2021 at 19:28

1 Answer 1

  • Check that the server is showing as online on this website
  • If you're running the server on the same computer that you're trying to connect with, try connecting with 'localhost' or your device's IPv4 number

In my experience, when I've set up the server on the same computer that I'm using to connect to the server and play, my public IP address will not work for me but will work for others, and I can only connect using localhost or my device's IPv4 address.

EDIT: I see you mentioned that you can connect using your local IP but not public. As long as the server is showing online on the website I linked above, others should be able to connect fine.

  • 1
    Thank you! Turns out it works
    – rens
    Dec 10, 2021 at 1:18
  • Great! Feel free to mark this as the answer if it helped
    – Oast
    Dec 10, 2021 at 6:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.