Question Port forwarding minecraft server not working ?

Nov 20, 2021
23
0
10
0
Hello,
I have raspberry pi 4 4GB with Raspbian 64bit. Up to date.
I cant port forward port 25565. Every single time I check port with website yougetsignal.com, canyouseeme.org etc. Port is showing as closed (Connection time out). I disabled firewall and still closed, enabled firewall on raspberrypi and added ports 80, 25565 as open (basically firewall is off on raspberry pi) with these commands:
  1. sudo ufw allow ssh
  2. sudo ufw allow http
  3. sudo ufw allow https
  4. sudo ufw allow 25565
  5. sudo ufw enable
Modem model is B525s-23a and Router model is Tenda AC1200
Internet acces is from Modem ---> Router ---> Raspberry Pi
I port forwarded 25565 in modem that Router can acces to it. Then I post forwarded 25565 from Router. Still Closed.
Then I connected rpi4 to Modem. Still nothing happened.

I can acces to minecraft word by my local internet but people from "outside" cant connect to it.
I made sure that I give people correct ip.

all answers are appreciated :)
 

kanewolf

Titan
Moderator
Hello,
I have raspberry pi 4 4GB with Raspbian 64bit. Up to date.
I cant port forward port 25565. Every single time I check port with website yougetsignal.com, canyouseeme.org etc. Port is showing as closed (Connection time out). I disabled firewall and still closed, enabled firewall on raspberrypi and added ports 80, 25565 as open (basically firewall is off on raspberry pi) with these commands:
  1. sudo ufw allow ssh
  2. sudo ufw allow http
  3. sudo ufw allow https
  4. sudo ufw allow 25565
  5. sudo ufw enable
Modem model is B525s-23a and Router model is Tenda AC1200
Internet acces is from Modem ---> Router ---> Raspberry Pi
I port forwarded 25565 in modem that Router can acces to it. Then I post forwarded 25565 from Router. Still Closed.
Then I connected rpi4 to Modem. Still nothing happened.

I can acces to minecraft word by my local internet but people from "outside" cant connect to it.
I made sure that I give people correct ip.

all answers are appreciated :)
According to the web that B525s-23a is a 4G cellular device. You probably don't have a public IP address on a cellular network.
Have you compared the WAN IP address to https://whatsmyip.com/ ? Do they match ?
 
Friends can not put in your local ip address and connect. Millions of people have the same lan address.
Your friends need to connect to your modems IP address which is assigned by your ISP.
Now in your modem port forward the correct ports to your server. Which it seems you have already done.
If you do not have a static IP address on your modem you will have to give them the new address each time your ISP changes it.
 
Nov 20, 2021
23
0
10
0
Friends can not put in your local ip address and connect. Millions of people have the same lan address.
Your friends need to connect to your modems IP address which is assigned by your ISP.
Now in your modem port forward the correct ports to your server. Which it seems you have already done.
If you do not have a static IP address on your modem you will have to give them the new address each time your ISP changes it.
So you mean I need to give them WAN IP instead of public IP to connect to my server?
 
If you click the link in Kanewolf's post it will give you your modems IP address.
This is the address that your friends need to connect to.
From there port forwarding sends the information to the server.
But most ISP can change that address each time the modem reboots, unless you pay for a static IP address.

So you will need to check it occasionally and when it changes they need to connect to your new address.
 

ASK THE COMMUNITY