Jump to content

Hello everyone,

So in the past couple days I had problems with forwarding my minecraft server.I watched every video,read everything I cant find but It just doesn't work.So I decided to make my post that will hopefully solve problem.Here is everything I did:

Disabled WAN block

Make sure that console is open and running on port 25565

Called ISP to make sure that they are not blocking any port

pw.jpg.b9270a66f793e38339236dfcd1df80e6.jpg

Local IP and external IP are both my PC's ipv4 addresses even though people said that external IP is not necessary,can be left blank,etc..

Is there anything left to try?

My router is ubee evw32c.

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/
Share on other sites

Link to post
Share on other sites

4 minutes ago, Lurick said:

External IP is your public IP address, not your private IP address.

Indeed, I'd expect the "left blank" to be important if they have a dynamic IP.

ASUS B650E-F GAMING WIFI + R7 7800X3D + 2x Corsair Vengeance 32GB DDR5-6000 CL30-36-36-76  + ASUS RTX 4090 TUF Gaming OC

Router:  Intel N100 (pfSense) Backup: GL.iNet GL-X3000/ Spitz AX Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz) WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz)
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~1200Mbit down, 115Mbit up, variable)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13527891
Share on other sites

Link to post
Share on other sites

1 hour ago, Lurick said:

External IP is your public IP address, not your private IP address.

Okay,also knew that but as sources are mixed I used private ipv4 there.But anyways problem is not solved by entering public address there.Port is still closed

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13528214
Share on other sites

Link to post
Share on other sites

1 hour ago, Astrix137 said:

Okay,also knew that but as sources are mixed I used private ipv4 there.But anyways problem is not solved by entering public address there.Port is still closed

Why didn't you just leave it blank?

ASUS B650E-F GAMING WIFI + R7 7800X3D + 2x Corsair Vengeance 32GB DDR5-6000 CL30-36-36-76  + ASUS RTX 4090 TUF Gaming OC

Router:  Intel N100 (pfSense) Backup: GL.iNet GL-X3000/ Spitz AX Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz) WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz)
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~1200Mbit down, 115Mbit up, variable)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13528452
Share on other sites

Link to post
Share on other sites

10 hours ago, Astrix137 said:

Still nothing,tried this before.

Ok, so first things first. Minecraft uses TCP, so you don't need the protocol to be set to both, TCP only would be ideal.  

 

Troubleshooting Step 1: Verify Listening State

The next step would be to identify to make sure the port 25565 is actually being listened to. If it is in a listening state, then this means it is ready to receive connections. 

 

First things first, if it's easier, try and connect to your server from the local machine its on by using the address 127.0.0.1, or another way would be to use the Windows command (assume your using Windows) netstat.  The easiest way to see if the application is listening is by using this tool: https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview 

 

Download it and find the process, otherwise, flick open a Powershell Window (normally just Win+X and select Powershell) and run the below command: 

netstat -ano | findstr -I -N 25565

This should show a single line, which should show Port 2556, and a PID next to it.  Look up the PID in Task Manager and make sure it's the minecraft process. 

 

Troubleshooting Step 2: Verify Firewall Settings

 

Search Windows Firewall in Control Panel, and open Windows Firewall with Advanced Settings, click on incoming connections and scroll down the list.  Make sure there's an entry for Minecraft, it should be allowing TCP or TCP/UDP port 25565.  If there is not a rule for this, create a new Firewall rule that allows port 25565. 

 

Now try and connect from another system in the network, if you don't have another system running Minecraft in the network, then go to step 3. 

 

Troubleshooting Step 3: Port Forwarding

 

So you already called your ISP and verified they aren't blocking any ports.  Make sure you know your external IP,  this is the IP you use when connecting to the internet, normally googling what is my IP will bring up your external IP address.  Chances are you are using a 192.168.1.0/24 IP scheme, which means anything starting with 192.168.1.* would not be your public IP address. 

 

It's also possible you have a modem or something that has a NAT enabled on it, blocking access from the internet.  This is why it helps to connect from another machine on the network, or even the machine itself and connect to the server using the IP of the machine.  

 

Don't set an external IP on the firewall rule as this may result in only you being able to connect (as only your IP will be allowed).  

 

Let us know how you go. 

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13530299
Share on other sites

Link to post
Share on other sites

12 hours ago, Akolyte said:

Ok, so first things first. Minecraft uses TCP, so you don't need the protocol to be set to both, TCP only would be ideal.  

 

Troubleshooting Step 1: Verify Listening State

The next step would be to identify to make sure the port 25565 is actually being listened to. If it is in a listening state, then this means it is ready to receive connections. 

 

First things first, if it's easier, try and connect to your server from the local machine its on by using the address 127.0.0.1, or another way would be to use the Windows command (assume your using Windows) netstat.  The easiest way to see if the application is listening is by using this tool: https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview 

 

Download it and find the process, otherwise, flick open a Powershell Window (normally just Win+X and select Powershell) and run the below command: 


netstat -ano | findstr -I -N 25565

This should show a single line, which should show Port 2556, and a PID next to it.  Look up the PID in Task Manager and make sure it's the minecraft process. 

 

Troubleshooting Step 2: Verify Firewall Settings

 

Search Windows Firewall in Control Panel, and open Windows Firewall with Advanced Settings, click on incoming connections and scroll down the list.  Make sure there's an entry for Minecraft, it should be allowing TCP or TCP/UDP port 25565.  If there is not a rule for this, create a new Firewall rule that allows port 25565. 

 

Now try and connect from another system in the network, if you don't have another system running Minecraft in the network, then go to step 3. 

 

Troubleshooting Step 3: Port Forwarding

 

So you already called your ISP and verified they aren't blocking any ports.  Make sure you know your external IP,  this is the IP you use when connecting to the internet, normally googling what is my IP will bring up your external IP address.  Chances are you are using a 192.168.1.0/24 IP scheme, which means anything starting with 192.168.1.* would not be your public IP address. 

 

It's also possible you have a modem or something that has a NAT enabled on it, blocking access from the internet.  This is why it helps to connect from another machine on the network, or even the machine itself and connect to the server using the IP of the machine.  

 

Don't set an external IP on the firewall rule as this may result in only you being able to connect (as only your IP will be allowed).  

 

Let us know how you go. 

If this doesn't solve problem,I don't know what will...I am busy right now but will try this asap.I need to tell you that I don't have public IP starting on 192... its different.Next thing:when I hosted server before I was using DUC No IP (which I am using right now) so it can give me custom server address and update IP if it changes (I believe you know about that more than me).I think that it has to do something with NAT blocking.Should I use my external IP for anything in this process?When I am checking open ports on like port check tool,should I type in my IPv4 or external IP?Thank you for helping,as I said,will try this asap.

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13532419
Share on other sites

Link to post
Share on other sites

4 hours ago, Astrix137 said:

If this doesn't solve problem,I don't know what will...I am busy right now but will try this asap.I need to tell you that I don't have public IP starting on 192... its different.Next thing:when I hosted server before I was using DUC No IP (which I am using right now) so it can give me custom server address and update IP if it changes (I believe you know about that more than me).I think that it has to do something with NAT blocking.Should I use my external IP for anything in this process?When I am checking open ports on like port check tool,should I type in my IPv4 or external IP?Thank you for helping,as I said,will try this asap.

Well, let us know if you can connect to the Minecraft server from inside your network, like another PC on your network by connecting to the IP of your machine.  (open cmd and type hostname) connect to the hostname of your machine from inside of your network and it should connect to the server.  

 

If that works, then it's a NAT issue, if it doesn't then it's a local issue.  It just means we don't have to troubleshoot areas that may not actually be broken. 

 

If you want to use a port checking tool, yes use your external IP.  This will check if the port if forwarded in your NAT. I would use your external IP and not No-IP, just for the sake of it. 

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13533466
Share on other sites

Link to post
Share on other sites

16 hours ago, Akolyte said:

Well, let us know if you can connect to the Minecraft server from inside your network, like another PC on your network by connecting to the IP of your machine.  (open cmd and type hostname) connect to the hostname of your machine from inside of your network and it should connect to the server.  

 

If that works, then it's a NAT issue, if it doesn't then it's a local issue.  It just means we don't have to troubleshoot areas that may not actually be broken. 

 

If you want to use a port checking tool, yes use your external IP.  This will check if the port if forwarded in your NAT. I would use your external IP and not No-IP, just for the sake of it. 

So this is what is happening:I tried Minecraft from other PC and tried to join server via direct connect localhost.And nothing.Then tried to add my IPv4:25565 as server and that didn't work as well.So it's maybe local issue as well.If you can give me more explanation how to troubleshot this as I didn't understand your previous explanation.

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13536075
Share on other sites

Link to post
Share on other sites

12 hours ago, Astrix137 said:

So this is what is happening:I tried Minecraft from other PC and tried to join server via direct connect localhost.And nothing.Then tried to add my IPv4:25565 as server and that didn't work as well.So it's maybe local issue as well.If you can give me more explanation how to troubleshot this as I didn't understand your previous explanation.

Hey mate, apologies for taking a while.

 

Just to clarify, if you are connecting to your server from a computer other than the one you are using as a server, you can't use localhost, as localhost means it's connecting directly to your own machine.  You'll want to use the computer's local IP.  So if you run the following command:

ipconfig /all

into a command prompt, then you should get some output. It should look similar to this:

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-73-05-FF
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::8889:5fba:bbc9:5bb9%3(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 29 April 2020 11:01:57 AM
   Lease Expires . . . . . . . . . . : Thursday, 30 April 2020 3:46:24 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2
   DHCPv6 IAID . . . . . . . . . . . : 50855975
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-37-E4-DC-08-00-27-73-05-FF
   DNS Servers . . . . . . . . . . . : 10.0.2.3
   NetBIOS over Tcpip. . . . . . . . : Enabled

Note: None of your adapters may be named Ethernet.  But look at the description field and find one that matches the connection type you are using.

 

The only fields you're gonna want to pay attention to are:

 

 IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 29 April 2020 11:01:57 AM
   Lease Expires . . . . . . . . . . : Thursday, 30 April 2020 3:46:24 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2

Run the same command on your other PC, and see if you get the same Default Gateway, the same DHCP Server and the same Subnet Mask.  The reason we look for these to be matching, is that they indicate if you are on the same network as your server.  Verify they are the same.

 

If they are the same then: When connecting to the Minecraft Server from your other PC, make sure you type in the IPv4 Address of your Minecraft Server Computer into the server field there should be no need to put :25565 on the end.

 

If that doesn't work then launch Windows Firewall with Advanced Configuration from your start menu.  If you cannot find this in the start menu then: Go to Control Panel > System and Security > Windows Defender Firewall > Click on Advanced Settings in the left.

 

Go to Inbound Rules and scroll the list, make sure a Minecraft Rule exists.  If one does not exist, then click on New Rule > Choose Port, Next > Choose TCP, Specific Local Ports, Enter 25565, Next > Select Allow the connection, Next > Ensure all profiles are selected, Next > Type in a name eg: Minecraft, and click Finish. 

 

Now try and connect to it from your other computer.  Make sure your Minecraft Server is running. 

 

If you have any more issues, it might be easier to just discuss it with me, I'm on the LTT Discord and my Discord is in my profile.  Pop in and I'll give you a hand.

 

Lemme know how you go.

Link to comment
https://linustechtips.com/topic/1184370-portforwaring-problems/#findComment-13538676
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×