Hello, so I have spent the whole day on this issue and seem to be a more unique issue since I cant find any solutions that fix mine. So I would really appreciate the help!
MY ISSUE:
I currently have a dedicated Ubuntu desktop running a 1.12.2 minecraft server. On the desktop I was able to connect to the server on mc using localhost.
But on the same network I was unable to connect to the server using the server's ipv4 address on a separate windows 10 pc. I also have not been able to get the port to open either (portcheckers shows that the port is closed on my ip despite having that port fowarded to the running server ip address)
What I have done/checked so far:
- port forwarded on 25565 and a different port (incase ISP was blocking 25565)
- checked connection between computers using ping (worked great both ways)
- turned off port-forwarding and enabled DMZ (this made no difference)
- changed online-mode to both true and false in server properties
- both server and computer are on same version of mc
- turned off all firewalls on both systems, also turned off router firewalls as well
I honestly don't have a clue what could be the issue for this server. I am fairly knowledgeable with computers and have taken a few networking courses at uni so would love some high level help with this if anyone can.
Some routers/modems have a “lan loopback” option when you port forward, I ran into this issue in the past and after I enabled lan loopback everything worked as intended. Also make sure that your server ip in the server.properties is the ip of your server/ machine that the server is hosted on.
So for example we use the ip range 1.0.0.* for all our local devices and my server was set to be 1.0.0.100 so I had to set that ip in my server.properties file in order to get it to work as intended.
This looks like it most likely is the issue, my router doesn't let me change anything for lan loopback so looks like this is an excuse to get a new one.
Not all routers require this to be manually enabled, most have it enabled by default or don’t require it entirely.
You should also take a look at your firewall settings as well as your homegroup and sharing settings (though I highly doubt that your sharing settings will be the cause).
This looks like it most likely is the issue, my router doesn't let me change anything for lan loopback so looks like this is an excuse to get a new one.
I tried with all firewalls off on all involved systems, it still didn't work. I also setup rules on the firewalls to allow for the specific ports and applications.
I haven't checked homegroup and sharing settings, But i still haven't been able to get the server open to outside my network either so i actually feel like there is something I am missing with the mc server itself or the router is doing something weird.
I tried with all firewalls off on all involved systems, it still didn't work. I also setup rules on the firewalls to allow for the specific ports and applications.
I haven't checked homegroup and sharing settings, But i still haven't been able to get the server open to outside my network either so i actually feel like there is something I am missing with the mc server itself or the router is doing something weird.
Have you tried setting the server-ip in the server.properties file to the local ip of the computer/machine where the mc server is hosted on?
Since you have knowledge about networking, I'm going all out.
So since you know the computers can ping each other, you at least know they're on the same subnet (and most routers set the subnet at /24 anyway), thus layer 3 OSI. So the next step is making sure you have layer 4 OSI connectivity between the two boxes.
Can you confirm 100 percent that your Win 10 box can create a TCP connection to Ubuntu Minecraft? I normally do this using putty (a really well known SSH client) by setting the configuration to telnet, changing the port to whichever port I'm testing (so in your case, 25565 - default port Minecraft binds to), and seeing what kind of response I get. Windows also has a telnet client that may or may not be disabled along with the telnet server. Chances are you may have created a Java or C program that acts as a client in your uni classes - maybe you can use that as well.
I also have to ask, are you using the Windows version of Minecraft? I mean, it's very, very unusual that you aren't able to connect to a Minecraft server on the same LAN, right? Especially if you turn off the firewall on the server (does Ubuntu even ship with a firewall? Usually the server doesn't, iirc).
For port forwarding, what is the exact message that was returned from portcheckers.com? A closed port message will normally mean that a firewall is not blocking/filtering the port AND a server is not running on that port. A timed out message usually indicates a firewall dropped/blocked/filtered the connection attempt (for example, iptables -A INPUT -p tcp --dport 25565 -j DROP will drop any packets with a dst of 25565) whether or not there's a server listening on that port.
It could be the case that you need to port forward twice; ISP modems have gotten smarter and they may be "routers" themselves. Check to make sure the router you're currently port forwarding doesn't have a WAN address that is an RFC 1918 IP address (a 192.168 kinda network usually). When my network connection was upgraded, the modem we received had, among other things, a DHCP server. So I ended up having to port forward through the modem and the router I bought to whatever server I needed to access from the Internet.
So since you know the computers can ping each other, you at least know they're on the same subnet (and most routers set the subnet at /24 anyway), thus layer 3 OSI. So the next step is making sure you have layer 4 OSI connectivity between the two boxes.
Can you confirm 100 percent that your Win 10 box can create a TCP connection to Ubuntu Minecraft? I normally do this using putty (a really well known SSH client) by setting the configuration to telnet, changing the port to whichever port I'm testing (so in your case, 25565 - default port Minecraft binds to), and seeing what kind of response I get
So putty is timing out on the 25565 port when doing windows 10 to ubuntu (client to server), this is where I don't know what to do. This would mean something is stopping a TCP connection between the 2 systems, right?
I also have to ask, are you using the Windows version of Minecraft? I mean, it's very, very unusual that you aren't able to connect to a Minecraft server on the same LAN, right? Especially if you turn off the firewall on the server (does Ubuntu even ship with a firewall? Usually the server doesn't, iirc).
This is what is stumping me too. This isn't my first time and usually its pretty simple to get running.
For port forwarding, what is the exact message that was returned from portcheckers.com? A closed port message will normally mean that a firewall is not blocking/filtering the port AND a server is not running on that port. A timed out message usually indicates a firewall dropped/blocked/filtered the connection attempt (for example, iptables -A INPUT -p tcp --dport 25565 -j DROP will drop any packets with a dst of 25565) whether or not there's a server listening on that port.
Yeah portcheckers gave me a closed message, I assumed that meant something was wrong with the server itself.
It could be the case that you need to port forward twice; ISP modems have gotten smarter and they may be "routers" themselves. Check to make sure the router you're currently port forwarding doesn't have a WAN address that is an RFC 1918 IP address (a 192.168 kinda network usually). When my network connection was upgraded, the modem we received had, among other things, a DHCP server. So I ended up having to port forward through the modem and the router I bought to whatever server I needed to access from the Internet.
This isn't it either, router shows the correct external IP
lmk if I got anything wrong haha
lol nah, this has been helpful. A lot of things I didn't think to check
So I actually realized my last post was incorrect, The modem does actually need to have the port forwarding rules too. I am now able to get a ssh port open on portcheckers (port 22 and the ssh server is on the same ubuntu system as the MC server) but with the same rules for 25565 i was unable to get it to open (it is still showing closed message).
Also I was able to ssh over lan to the same system but still unable to get a telnet to 25565. I also checked the netstat on the ubuntu server and it is listening to the 25565 port
Hello, so I have spent the whole day on this issue and seem to be a more unique issue since I cant find any solutions that fix mine. So I would really appreciate the help!
MY ISSUE:
I currently have a dedicated Ubuntu desktop running a 1.12.2 minecraft server. On the desktop I was able to connect to the server on mc using localhost.
But on the same network I was unable to connect to the server using the server's ipv4 address on a separate windows 10 pc. I also have not been able to get the port to open either (portcheckers shows that the port is closed on my ip despite having that port fowarded to the running server ip address)
What I have done/checked so far:
- port forwarded on 25565 and a different port (incase ISP was blocking 25565)
- checked connection between computers using ping (worked great both ways)
- turned off port-forwarding and enabled DMZ (this made no difference)
- changed online-mode to both true and false in server properties
- both server and computer are on same version of mc
- turned off all firewalls on both systems, also turned off router firewalls as well
I honestly don't have a clue what could be the issue for this server. I am fairly knowledgeable with computers and have taken a few networking courses at uni so would love some high level help with this if anyone can.
Thanks!
Hi,
Some routers/modems have a “lan loopback” option when you port forward, I ran into this issue in the past and after I enabled lan loopback everything worked as intended. Also make sure that your server ip in the server.properties is the ip of your server/ machine that the server is hosted on.
So for example we use the ip range 1.0.0.* for all our local devices and my server was set to be 1.0.0.100 so I had to set that ip in my server.properties file in order to get it to work as intended.
This looks like it most likely is the issue, my router doesn't let me change anything for lan loopback so looks like this is an excuse to get a new one.
Thanks!
Not all routers require this to be manually enabled, most have it enabled by default or don’t require it entirely.
You should also take a look at your firewall settings as well as your homegroup and sharing settings (though I highly doubt that your sharing settings will be the cause).
By firewall I mean your antivirus.
I tried with all firewalls off on all involved systems, it still didn't work. I also setup rules on the firewalls to allow for the specific ports and applications.
I haven't checked homegroup and sharing settings, But i still haven't been able to get the server open to outside my network either so i actually feel like there is something I am missing with the mc server itself or the router is doing something weird.
Have you tried setting the server-ip in the server.properties file to the local ip of the computer/machine where the mc server is hosted on?
Yeah i tried that before, it also didnt seem to make a difference
Since you have knowledge about networking, I'm going all out.
So since you know the computers can ping each other, you at least know they're on the same subnet (and most routers set the subnet at /24 anyway), thus layer 3 OSI. So the next step is making sure you have layer 4 OSI connectivity between the two boxes.
Can you confirm 100 percent that your Win 10 box can create a TCP connection to Ubuntu Minecraft? I normally do this using putty (a really well known SSH client) by setting the configuration to telnet, changing the port to whichever port I'm testing (so in your case, 25565 - default port Minecraft binds to), and seeing what kind of response I get. Windows also has a telnet client that may or may not be disabled along with the telnet server. Chances are you may have created a Java or C program that acts as a client in your uni classes - maybe you can use that as well.
I also have to ask, are you using the Windows version of Minecraft? I mean, it's very, very unusual that you aren't able to connect to a Minecraft server on the same LAN, right? Especially if you turn off the firewall on the server (does Ubuntu even ship with a firewall? Usually the server doesn't, iirc).
For port forwarding, what is the exact message that was returned from portcheckers.com? A closed port message will normally mean that a firewall is not blocking/filtering the port AND a server is not running on that port. A timed out message usually indicates a firewall dropped/blocked/filtered the connection attempt (for example, iptables -A INPUT -p tcp --dport 25565 -j DROP will drop any packets with a dst of 25565) whether or not there's a server listening on that port.
It could be the case that you need to port forward twice; ISP modems have gotten smarter and they may be "routers" themselves. Check to make sure the router you're currently port forwarding doesn't have a WAN address that is an RFC 1918 IP address (a 192.168 kinda network usually). When my network connection was upgraded, the modem we received had, among other things, a DHCP server. So I ended up having to port forward through the modem and the router I bought to whatever server I needed to access from the Internet.
lmk if I got anything wrong haha
So putty is timing out on the 25565 port when doing windows 10 to ubuntu (client to server), this is where I don't know what to do. This would mean something is stopping a TCP connection between the 2 systems, right?
This is what is stumping me too. This isn't my first time and usually its pretty simple to get running.
Yeah portcheckers gave me a closed message, I assumed that meant something was wrong with the server itself.
This isn't it either, router shows the correct external IP
lol nah, this has been helpful. A lot of things I didn't think to check
So I actually realized my last post was incorrect, The modem does actually need to have the port forwarding rules too. I am now able to get a ssh port open on portcheckers (port 22 and the ssh server is on the same ubuntu system as the MC server) but with the same rules for 25565 i was unable to get it to open (it is still showing closed message).
Also I was able to ssh over lan to the same system but still unable to get a telnet to 25565. I also checked the netstat on the ubuntu server and it is listening to the 25565 port