How to port forward a minecraft server?

Status
Not open for further replies.

Tm_carbon

Reputable
Oct 14, 2015
109
0
4,690
So I want to have a small server run on my machine (so I don't have to pay money) for friends. The server works and I can connect to it by myself but no on else can connect. I decided the problem must be a port forward issue or a firewall issue.


For my port forwarding I have the server set up as a TCP service type, 25565 as external starting and ending port, 25565 as internal starting and ending port, and my ipv4 address as the internal ip address.

I think the above is all correct in how to port forward a server but I've never done it before so I may be wrong.


My firewall is where I have no idea what to do or if I need to do anything. I only have the windows firewall and no other anti virus and would like some help (step by step otherwise I probably wont get it) if needed to have the server set up so they can connect to my server.

my router is a Nighthawk R7300 by Netgear.

If you have any other questions or information then just ask. Any help will be appreciated.
 

SaulG

Reputable
Feb 13, 2016
16
0
4,510
Open Command prompt from the start menu, and run the command "ipconfig"
look for a IPv4 address (looks similar to 192.168.X.X)
Also look for a default gateway address (also looks like 192.168.X.X
remember the address or write it down
Open the server.properties file with Notepad
look for Server IP and add the IPv4 address you just got.
on your web browser, type in the default gateway address and login
the username should be admin
password should be admin (if not, try "password")
click on Advanced
Click on advanced setup
click on Port Forwarding/Port Triggering.
click on add custom service
for the service name, type in mcserver or something
make sure service type is TCP/UDP
set the internal and external ports to 25565
make sure the Use the same port range for Internal port check box is checked
type in your IPv4 address and click apply
you should be done
Use this tool to make sure its running: http://www.canyouseeme.org/
I hope this helped!
 

Tm_carbon

Reputable
Oct 14, 2015
109
0
4,690
I restarted everything. If I put the :25565 at the end of the server ip in the server.properties then the server crashes. When I put it onto the ip gotten from whatismyip.org the server still couldn't be found.
 

SaulG

Reputable
Feb 13, 2016
16
0
4,510
Can you send me the text of server.properties?
You might need to send it as a PM just to avoid breaking any terms and stuff.
I just want to make sure everything is correct.
 

STcreature

Honorable
Nov 12, 2014
123
1
10,715

That means your portforwarding is wrong or you have missed something up the ports cant reach the server because the ports are blocked
 

SaulG

Reputable
Feb 13, 2016
16
0
4,510
Sorry for the lateness, are you only using one router/modem to access the internet?
In my case, I'm using 2 different networks and on the 2nd, I can't port forward no matter what I don unless it is connected directly to the main router. Sometimes, even then I still can't seem to get port forwarding to work at all... Not quite sure what could be causing this issue.
 

SaulG

Reputable
Feb 13, 2016
16
0
4,510
Again, sorry for the lateness. I guess I'm not subscribed to this thread anymore?
The wifi extender shouldn't really affect anything. Have you tried connecting directly to the main router and seeing it that works?
 

Destari

Honorable
Sep 17, 2013
3
0
10,510
This is a very late submission, but I am leaving it here for someone to find it, since it's a large result on Google.

You need to not only port forward your router, you also need to make an opening in your computer's firewall if you are running Windows.

Go to control panel > Windows firewall > Advanced settings

Make a new inbound rule and select "Port" put in port 25565, allow the connection and name it.

This will allow Minecraft to take connections from external clients and is required even if you are both on the same LAN since it applies to all traffic not from your own computer/server. Hope this helps someone.
 
Status
Not open for further replies.