Thursday, June 18, 2015

Running Minecraft Server on Windows 8.1: Allowing inbound connections

Phase A Let your router forward port tcp 25565 to your minecraft server on windows

1) Log into your router using a webbrowser
  • (Your router's ip, usually it's 192.168.1.1. If not, open a command prompt and type: ipconfig and look for your ipv4 gateway address)
2) Search for Port Forwarding
  • (it might be under/near WAN settings)
3) Make a port forwarding rule
  • local ip: the ip-address of your windows pc running minecraft server (usually something like 192.168.x.x)
  • local port 25565 protocol: TCP remote port 25565
  • if you do it right, your router will accept connections coming from the internet on its external IP on tcp port 25565 and forward the connections to the private IP of your windows system

Phase B Open your Windows 8.1 firewall

1) Go to Control Panel\System and Security\Windows Firewall and click advanced settings

2) Select inbound rules and create a new rule allowing tcp 25565 in
  • make a port rule for tcp 25565 allow connection for all profiles
3) Disable the inbound rule that blocks incoming connections to your Java version
  • Since Java is running your minecraft server, you also need to disable the rule that blocks traffic to your Java. You might need to test which rule it is.
Phase C: Test it!

1) Make sure your minecraft server is running

2) Visit http://www.ipfingerprints.com/portscan.php and Scan on port 25565
  • If the state is OPEN, it works!