Is my router blocking ports?

xDavid67

Prominent
Mar 1, 2017
18
0
520
OK so to make a long story short
I use my router and check for ports said it was closed.
I hard connect to my Modem and the port is open.

So i did port foward but for some reason when i hard connect to my router it just wont let me connect to my server. Please help!
 
Solution
So my ipv4 changed after a router reset and for some reason the ports had gotten open from that. So I can only connect through Localhost and others use my public IP


So, lots of stuff going on here.

1. Have you opened the ports in firewalls on the systems too? Windows has a software firewall that often blocks incoming ports by default. You will need to check this on all concerned devices in the chain. Check this for the executables that need to be accessed as well.

2. Does your server have a static IP set?

3. Are you connecting from within the network or outside of it? If from within, use the server's internal IP. Most routers do not allow internal->external->internal access as it is a security problem.

4. Is the server service configured properly? You may wish to check all of your settings there are correct as well.

Make sure you follow through everything properly. Check http://www.portforward.com with your router model for specific instructions to help you port forward.

Please follow these steps methodically and report back on if you are successful or not. Do not skip steps, as you may miss something important.
 

xDavid67

Prominent
Mar 1, 2017
18
0
520
1. I did open the inbound and outbound rules

2. I have a NO-IP configuration

3. I don't exactly understand but I am hard wired into my router (Router is wired into the modem)

4. That website doesn't list my router (Sagemcom F@st 5260)
 


RE 1: You're absolutely certain? Cause nothing else I say here is going to be useful if you're not absolutely certain you've done this first step. Keep in mind you have to port forward on your router AND open those rules on your computers. Not the same process. Keep in mind on the computers, you need to check Inbound/Outbound, and DO IT for the PROGRAM and the PORT.

What kind of server are you running and what steps are you taking to connect? Please list them and any errors it gives you.

RE 2: You should have a static IP set up on the server for internal use, or its IP can change. No-ip is for the external part of this, not for the internal.

A really quick explanation:
Your network ultimately has 2 groups of IP addresses. There's your external IP, or what the internet at large uses to send data to your router, and from then, onward to your computer. Then there are internal (local) IPs that are used by your router to figure out where something goes.

Think of it like sending mail to a company. The company's building address is the external IP, and then on your letter you have Attention: Department of Redundancy. That's like your internal IP.

The issue is, routers give out internal IPs on a relatively arbitrary basis. So if you have port forwarding set up to a specific internal IP, sometimes the device that's supposed to refer to has a different IP now. A static IP tells the computer to always ask the router for the same address for consistency.

Are you trying to connect to it from inside of your network using the No-IP? That won't work (from inside the network). You can still use that to connect from outside of your network, however.

To get your IP information from your server, assuming it runs Windows:
cmd
ipconfig /all

And you'd be looking for IPv4. Ideally, it should say "(IP Address) <Preferred>". If it doesn't, google how to set up a static IP and follow those instructions on the server. Once you set a static IP, restart the system.

Once you've done that, or during, rather, make a note of what that IP is. You will need to use it to connect to your server from WITHIN your network.

RE 3: The way most routers are designed, they don't allow you to call devices on the network using the Router's external IP, as this is usually used for abuse.

If you're inside your network (at your house, say) you will need to use the local IP of your server, which you can obtain via the methods described above. If you're outside your network, you can use your No-IP Dynamic DNS you have set up.

RE 4: Well, try the above stuff, let me know. Most routers are about the same.
 

xDavid67

Prominent
Mar 1, 2017
18
0
520


I know for sure I allowed the ports through my windows firewall both Inbound and Outbound, I know this because I hosted my server with my old router and modem but then I port forward on this new router and modem and it wont work.

HERE IS MY ERROR:

C:\Users\David\Desktop\Minecraft Server (Whitelist)>java -Xmx4096M -Xms4096M -jar spigot.jar -o true
Loading libraries, please wait...
[17:07:07 INFO]: Starting minecraft server version 1.8
[17:07:07 INFO]: Loading properties
[17:07:07 INFO]: Default game type: SURVIVAL
[17:07:07 INFO]: This server is running CraftBukkit version git-Spigot-c3c767f-33d5de3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[17:07:07 INFO]: Debug logging is disabled
[17:07:07 INFO]: Server Ping Player Sample Count: 12
[17:07:07 INFO]: Using 4 threads for Netty based IO
[17:07:07 INFO]: Generating keypair
[17:07:07 INFO]: Starting Minecraft server on ayyyelmao.zapto.org:25565
[17:07:07 WARN]: **** FAILED TO BIND TO PORT!
[17:07:07 WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind
[17:07:07 WARN]: Perhaps a server is already running on that port?
[17:07:07 INFO]: Stopping server
[17:07:07 INFO]: Saving players
>
C:\Users\David\Desktop\Minecraft Server (Whitelist)>PAUSE
Press any key to continue . . .

I don't know how to make a static IP, but I do know I don't need to because when I hard connect to my modem everything works.

So yea everything works when I connect directly to the modem but when I am direct into the router it wont work.
 


Can you post your config file for the server? Something is causing your server to be unable to bind, and my guess is you're not giving it a valid address in its configuration. Otherwise, it's almost certainly something with your portforwarding. DL Portforward.com's checker tool and make sure you have that working properly. Something is not working properly with NAT negotiation on your router if a direct connection to your modem fixes your issues in all likelihood.

A static IP is important if you want to ensure a consistent connection and external access from behind a router. Don't get me wrong, those will more or less stay where they are, but they can change, and that will break your config when that happens.

The issue with what you're doing right now is that it will work for a time. However, think of your router like a guide giving location directions. Currently, you've told it to send any traffic to port 25565 to the address your server is on, say, 192.168.0.80. The trouble is that your server is not guaranteed to stay on that location w/o having a static IP configured and assigned.

So, it may come to pass that next time you restart your router, or the server has to restart, it gets assigned a new IP, say, 192.168.0.78. All of a sudden, your port forwards are not pointing to an existing address. A static IP, on the other hand, always tells your server to ask the router for 192.168.0.80 to remain consistently routed.

You don't have to do it, but it'll help prevent issues down the line.

Current Things to Try
- Get your external IP from Ipchicken.com and try using that in the config. Just to isolate if your DynDns is configured properly.
- Read over the config info I mentioned, see if anything jumps out at you as missing
- Use Portforward.com 's Port Checker tool to ensure you have the port open properly

---------------------

The steps I've always followed for an MC server:
1. Set a static IP on the host of the server. If you don't know how, just google "Setting static IP". It's very easy.
2. Get my external IP (or in your case, use a dyn-dns) via a site like Ipchicken.com
3. Choose a free port, usually the default is good.
4. Edit the config file to specify the information, as such:


(Could be worth looking into the explanations here: http://minecraft.gamepedia.com/Server.properties)
#Minecraft server properties
#(File Modification Datestamp)
max-tick-time=60000
generator-settings=
allow-nether=true
force-gamemode=false
gamemode=0
enable-query=false
player-idle-timeout=0
difficulty=1
spawn-monsters=true
op-permission-level=4
announce-player-achievements=true
pvp=true
snooper-enabled=true
level-type=DEFAULT
hardcore=false
enable-command-block=false
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
server-port=25565
server-ip=<MY EXTERNAL IP> (Edit: Apparently it's recommended to leave this empty. See what works.)
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
generate-structures=true
online-mode=true
max-build-height=256
level-seed=
prevent-proxy-connections=false
motd=A Minecraft Server
enable-rcon=false

5. Go into Windows Firewall:
A) Open Inbound and Outbound for Port 25565 on TCP
B) Open Inbound and Outbound on the Server Executable

6. Go into the Router Console and forward 25565 TCP to the LOCAL IP of the server

Restart the server.

At this point, everything should start correctly.
 

xDavid67

Prominent
Mar 1, 2017
18
0
520
So my ipv4 changed after a router reset and for some reason the ports had gotten open from that. So I can only connect through Localhost and others use my public IP
 
Solution