Problems setting up a server.
15 replies [Last post]
Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9

Ok sorry if this has been posted hundreds of times before but I've been at this for hours and have found no solutions.

What I've done:

-Downloaded the server software on minecraft.net

-Run the server over LAN everything is fine.

-Port forwarded on router and firewall

-Set up a static IP

Problem:

-"Can't connect to server." error on another internet connection.

 

I guess my question is what is causing this? (some setting in the server properties? Maybe something else?)

And of course how can this be fixed?

Sonardo
Staff Member
Community Managers
WoM Member: 236091
WoM Coins: 1450

Have you made sure your friend puts ":25565" after the IP when connecting?

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Well right now its only me

Well right now its only me trying to connect from another network but yes I have tried with/without the port using the internal/external IP aswell as trying to sign up for a domain on no-ip.org or something close to that.

Sonardo
Staff Member
Community Managers
WoM Member: 236091
WoM Coins: 1450

Assuming you've done everything right and have the correct configuration, it should work. Have you checked the port in the server.properties is the same as the one you forwarded? It could also be that your ISP doesn't support port-forwarding and you might have to contact them if nothing else works.

spudsrus
Server Technician
Community Managers
WoM Member: 22852
WoM Coins: 776

try telnetting to the port from an external address to see if it's open. (checking that you did your port forward correctly)
 

Assumming windows 7 (on the external computer)

Open control panel, add remove programs, Turn windows features on/off. Enable telnet client.

Open command prompt (windows + r, cmd run)
type telnet x.x.x.x 25565

where x.x.x.x is the public ip address of your server.
 

 

If you've done things right telnet won't error and will go to just a black screen indicating that it's established a connection.
Otherwise it'll error and you have a problem with your port forwarding.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
try telnetting to the port

try telnetting to the port from an external address to see if it's open. (checking that you did your port forward correctly)

 

Ill try to telnet in. I assume the IP address of my server is the one that I had to put in when I port forwarded? gonna try that one.

 

And yes I left the port as default and forwarded the same port through both my firewall and router. Does ISP handle port forwarding? Never heard of that problem I just always assumed it was just up to the router and the firewall.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Results:-Port scan from

Results:

-Port scan from inside/outside the network showed port 25565 state as "filtered" aswell as the service being for minecraft.

-Telnet from inside network "Could not open connection to the host, on port 25565: Connect failed (though it showed the same error for 23 which should work as it is the telnet port correct?)

Tried telneting External IP. Same problem with 25565 but port 23 went though so yeah I think it may be a forwarding problem. Now I just gotta figure out where the problem is.

For the hell of it I pinged the IP of the server from inside the network and it lost 3/4 packets and the one that was recived said "Destination host unreachable" From outside the network all of the packets were recieved but still gave the same error as above.

Pinged my external IP of my pc and that went as a normal ping should.

boller15
Contributor
Contributor
WoM Member: 557686
WoM Coins: 508

The ip of your server isn't the one you used to port forward...

Google "Whats's my ip", that's your ip.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
So my actual external IP. As

So my actual external IP. As stated above I tried with that one too :/ still no luck.

liquid_lightning
Epic Contributor
Contributor
WoM Member: 547233
WoM Coins: 1712

Go into your command prompt and type netstat. That will show you your IP along with all open ports.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Go into your command prompt

Go into your command prompt and type netstat. That will show you your IP along with all open ports.

Ok done. Not sure what I'm supposed to be looking for here. I see a list of IPs followed by ports. None of which are 25565. With that being said does that mean for sure my port is closed? I'm about to go to my router settings and firewall to double check.

 

Disabled firewall all together didn't seem to help.

Did an online port scan and it showed 25565 as closed.

spudsrus
Server Technician
Community Managers
WoM Member: 22852
WoM Coins: 776

Just to clarify, there's two IP addresses to check
 

your internal IP which is likely to be

192.168.something.something

or 10.something.something.something

you can always find it by running ipconfig in command prompt (it's the ipv4 address)

and your external IP which will be completely different.

If from your internal network you can't telnet to your computers internal IP on the 25565 port then your firewall on your computer is probably blocking that port and you need to create a rule to open it.

 

If you can telnet to your internal ip from another computer on your home network then check the external.

It might also be worth making sure your ISP will allow port 25565 through to your house because apparently in america ISP's will block a number of ports to force you to pay for business plans. (We don't get that where I live thankfully)

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Not quite sure what this

Not quite sure what this means but I tried again to telnet into the port 25565 from inside the network with the firewall disabled and the console went blank.

From outside the network it prompts me for login information.

It's a little late now but I may be able to contact my ISP tomorrow if all else fails.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Did a little looking around

Did a little looking around and one solution to my problem was resetting the router to factory defaults. Will do that tomorrow as well.

Zeaox
WoM Member
Members
WoM Member: 387453
WoM Coins: 9
Screw it all im usin hamachi

Screw it all im usin hamachi

spudsrus
Server Technician
Community Managers
WoM Member: 22852
WoM Coins: 776

When the console goes black that's a succesful telnet connection. (Which means the firewall on your computer was blocking it)
If you have that disabled and still can't telnet to your external IP from an external computer then you have a problem with your port forwarding or ISP.