3

I have a Minecraft Server running on a computer of my LAN. It's the actual minecraft_server.jar, not a shared single player world, and I can connect to it from other devices on the LAN. I opened its port in the firewall and set up port forwarding so that it's accessible from the outside.

However, from outside the LAN, I get "connection refused". Online scanners (like this one) say that the Minecraft Server port is open and can even detect the version of Minecraft, so the port seems to be forwarded correctly (I set it up in the router's settings), so I really don't understand how the connection can be refused.

The exact message I get is "Connection refused : no further information".

The server's server.properties file is the default one, with juste the difficulty changed to 2.

What can cause this "Connection refused" message ?

  • To clarify, you are trying to run a Minecraft Server on your computer? Then have another computer connect to yours to make a LAN-Server? – ghostwalker13 Feb 19 '17 at 14:55
  • That's right. The LAN works, but I'm trying to open the server to the outside as well, to let a friend play from home. – Elzo Feb 19 '17 at 15:03
  • Looking at your answer, my comment wasn't clear : when I say "the LAN works", it means that other devices on the LAN can connect to the server, not that I used the "share with LAN" option on a single player world. I'm running an actual minecraft_server.1.11.2.jar. – Elzo Feb 19 '17 at 16:13
  • 3
    is your friend(Outside LAN ) trying to connect using your external IP address? – Dignissimus - Spammy Feb 19 '17 at 16:19
  • 2
    Yes. That's also the address I gave to the online scanner which saw the open port. – Elzo Feb 19 '17 at 16:20
-1

Before-hand Note: This answer works on the assumption that the Questioner was asking about LAN Servers on their computer - misconceptions happen...

That will not work, Sorry.

That's practically impossible. Sorry. For why: LANs, or un-abbreviated as LOCAL Area Network, only connect with clients that are connected to the same Router (wifi router).

But if clients from across the world want to connect to your server, you'll need to set-up a dedicated server on your computer, or from a Server Provider (internet search).
If you want a Free, Temporary Alternative, you can use Minecraft Realms to take control of one of Mojangs personal servers for a set amount of time. And what's more: it's private and secure - only you have the IP to it.

In short...

Set-up a Dedicated Server on Your Computer: Minecraft Server Set-up or Dedicated Server Google-search.

Create a Local Area Network Server, based on your computer, with you and your friend(s) connected to the same wifi-network (different PCs).

Set-up a Minecraft Realm on a different Private IP: Minecraft Realms.

You're Welcome! :smiley-face:

  • 3
    What you call a "dedicated server" is what's currently running on my computer. That's what I call a "Minecraft Server". It's accessible from the LAN and from outside the LAN as the online nmap scans show. My friend could connect from home before, but I changed router and now I get this error. – Elzo Feb 19 '17 at 15:33
  • I wrote this before knowing that you had a Client-based-Server. Anyway: is your antivirus and or security measures (firewall and such) blocking your friend? Or is your specified IP address different to the one you provided them? (To check your IP, type in Google "What's my IP", or in your Command Console [or similar] ipconfig). – ghostwalker13 Feb 19 '17 at 19:48
  • As I wrote I have allowed the Minecraft server to listen in the firewall, both Windows's and the router's, and I did it right as nmap sees the port open from the outside. The server PC did have an antivirus (Avira) but I don't see why it would be forcing the server to refuse incoming connections, especially given that it accepts them from the LAN. The IP is correct, both because I checked it 20 times with those "what's my IP" sites and because the scans found Minecraft listening on it, as expected. Really, I don't have any clue. – Elzo Feb 20 '17 at 5:02
  • 1
    I'm really not sure what to say now... perhaps your IPv4 or IPv6 addresses are mixed-up. I'm not sure - it always seems to revolve around the IP-type. If that doesn't work, there's nothing else that I can offer you. Try going to the Mojang site for help on your agendas. – ghostwalker13 Feb 21 '17 at 18:17
  • Yes, it seems that the server is reachable but refusing the connections from the outside. Really weird. Thanks for your help. – Elzo Feb 21 '17 at 18:19

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.