Port forwarding doesn't work, tried literally everything

zenkor11

Prominent
Sep 14, 2017
15
0
510
As the title says, my port forwarding simply doesn't want to work. So, i moved at a new home some time ago and I changed the ISP which gave me obviously some cheap router which i was fine with.
After some time i wanted to port forward for a game server, which didn't worked at all, then I tested the forward with a open port check, didn't worked too(after multiple ports and probably all the combinations at that damn forward settings with which i was confused at first), i tried CMD, i restarted pc and router infinitely amount of times, i looked at threads and forums and tried all the things from there, i tried DMZ, i asked some people, i reset the router, i even tried to find another PON router to buy and actually didn't find lol...eventually after all the possible things i ended up calling my ISP call support that told me there is a tutorial on their site to how to port forward which explained the same things i already tried...so if you guys can help me that would be great, see ya!

btw my router is ZTE F660
 

winterlove187

Prominent
Sep 16, 2017
5
0
510
you can check your ip and other details in cmd use ipconfig or ipconfig/all
maybe that will help you out.

also check make and model of router and update the firmware if you can

then there should be a section somewhere for port forwarding
 
"I have tried everything" tells me nothing of what you have tried or where you got stuck.
For reference, I've used what this page tells of the router:
https://portforward.com/zte/f660/
So.. that said, I'll try to cover all steps:
1. You know routers internal IP
2. you know your computers internal IP
3. you know routers external IP
4. you have set the port forwarding in routers config (application tab should have port forwarding page, according to google)
5.1 make sure that WAN start port and end port are same as the port you are hosting the server on. (or if using one port, use same for start/end)
5.2 make sure that LAN host IP address is YOUR internal IP address from step 2.
5.3 make sure that LAN host start/end port matches your choices from step 5.1
5.4 Make sure correct protocol is selected (TCP, UDP or both)
6. make sure that "enable" checkbox is selected
7. Router will either reboot itself automatically or you need to boot it for it to start working
8. RUN the server on your computer, if you do not do this, there is nothing listening and replying in said port and online tests wont get reply and see it as "closed"
9. Remember that if YOU join it, you will likely need to use 127.0.0.1:portnumber to join, you CANNOT use external IP:port from step 3.
10. If all works up to this point, you should be able to get somekind of positive result from online testing like https://www.yougetsignal.com/tools/open-ports/
11. remember to use your EXTERNAL IP and port you selected and remember that you HAVE to have the server running. (use current link will use your external IP btw, if this offers something else than in step 3, you have problems)

I think that is about it
 

zenkor11

Prominent
Sep 14, 2017
15
0
510


 

zenkor11

Prominent
Sep 14, 2017
15
0
510
ok so i tried all that again(thou i think i already got to check them all massively amount of times before this thread...and, same thing
so, fyi the server i want to run is a minecraft server, and i opened it seeing the same stuff

[21:28:03 INFO]: Starting minecraft server version 1.7.2
[21:28:04 INFO]: Loading properties
[21:28:04 INFO]: Default game type: SURVIVAL
[21:28:04 INFO]: Generating keypair
[21:28:04 INFO]: Starting Minecraft server on 82.79.154.45:25565
[21:28:04 WARN]: **** FAILED TO BIND TO PORT!
[21:28:04 WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind
[21:28:04 WARN]: Perhaps a server is already running on that port?

i kept it open to see the open port check and the same thing there too: Port 25565 is closed on 82.79.154.45.
i don't think is anything left to do to actually make it work
 

zenkor11

Prominent
Sep 14, 2017
15
0
510


 

zenkor11

Prominent
Sep 14, 2017
15
0
510
an interesting thing that i saw is when i went to router's page it said there at Info a totally different external IP despite what said open port checker and other sites
 
there is error on your minecraft server.properties config, you should leave the server-ip part of it EMPTY (it will default to your own computers internal ip) That 82.79.154.45 sounds like external IP and if your computer has been given this IP, you should not need port forwarding at all.
you have put the external IP in there and computer doesn't see said port as usable and minecraft server fails to run properly (even if port forwarding would work.)

Also that router external IP being different than what open port checker says will most likely mean that your modem/router combo ALSO does NAT/firewall stuff and you would need to forward things in there also. (from modem's external IP to routers external)

It all depends on things though.
 
G

Guest

Guest
Port forwarding isn't set on your pc, it's set on your router. You have to log into your router and set the port forward details there.
 

zenkor11

Prominent
Sep 14, 2017
15
0
510


 

zenkor11

Prominent
Sep 14, 2017
15
0
510
ok so i left the server-ip empty and now the error is gone, basically the server booted up, with some warnings thou, but it's kind of on...now i doubt that the server is actually public because i think i tried that too and gave my friends my external IP and it didn't worked and also let it open to see open port checker and it still says Port 25565 is closed on 82.79.154.45. This thing just freaks me out because before moving to a new city and changing ISP i would simply put my external IP in server.properties and didn't even need it to forward, it would perfectly work, i don't think i even had a web interface to that old modem i had previously, but now i have this PON which is router/modem and can't do this basic stuff which just sucks, so i guess that "Old but gold" stuff is true...recently i bought a new router just for better wi-fi in the house cause this one doesn't even have 802.11ac but i don't use that one to PC so i keep the pc connected to the PON cause i don't think it matters as i read that you must anyway forward both of them if the PC is connected to other router than the main one...i'll let some Info stuff from the router web interface and minecraft console:

Type PPP
Connection Name INTERNET
IP Version IPv4/v6
NAT Enabled
IP 100.107.16.184(this is the one that router shows as other IP despite the sites)
DNS 193.231.252.1/213.154.124.1/0.0.0.0
IPv4 Connection Status Connected
IPv4 Online Duration 86011
LLA fe80::646b:10b8
GUA 2a02:2f09:b01f:ffff::646b:10b8
DNS 2a02:2f0c:8000:3::1/2a02:2f0c:8000:8::1/::
Prefix Delegation Yes
Delegating Prefix Address ::
IPv6 Connection Status Connected
IPv6 Online Duration 86023
WAN MAC 20:89:86:c4:7e:c0


and minecraft console:

[11:19:40 INFO]: Starting minecraft server version 1.7.2
[11:19:40 INFO]: Loading properties
[11:19:40 INFO]: Default game type: SURVIVAL
[11:19:40 INFO]: Generating keypair
[11:19:40 INFO]: Starting Minecraft server on *:25565
[11:19:40 INFO]: This server is running CraftBukkit version git-Bukkit-1.6.4-R2.0-2-g7e1ac0a-b2922jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.1-SNAPSHOT)
[11:19:40 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[11:19:40 WARN]: The server will make no attempt to authenticate usernames. Beware.
[11:19:40 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[11:19:40 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[11:19:40 INFO]: Preparing level "world"
[11:19:40 INFO]: Preparing start region for level 0 (Seed: -4839515917808047866)
[11:19:41 INFO]: Preparing spawn area: 56%
[11:19:41 INFO]: Preparing start region for level 1 (Seed: -4839515917808047866)
[11:19:41 INFO]: Preparing start region for level 2 (Seed: -4839515917808047866)
[11:19:41 INFO]: Server permissions file permissions.yml is empty, ignoring it
[11:19:42 INFO]: Done (1.501s)! For help, type "help" or "?"
[11:19:42 INFO]: Starting GS4 status listener
[11:19:42 INFO]: Query running on 0.0.0.0:25565
[11:19:43 WARN]: Exception in thread "Thread-8"
[11:19:43 WARN]: org.bukkit.craftbukkit.libs.com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:180)
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:755)
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:694)
[11:19:43 WARN]: at org.bukkit.craftbukkit.v1_7_R1.updater.BukkitDLUpdaterService.fetchArtifact(BukkitDLUpdaterService.java:53)
[11:19:43 WARN]: at org.bukkit.craftbukkit.v1_7_R1.updater.BukkitDLUpdaterService.getArtifact(BukkitDLUpdaterService.java:30)
[11:19:43 WARN]: at org.bukkit.craftbukkit.v1_7_R1.updater.AutoUpdater$1.run(AutoUpdater.java:77)
[11:19:43 WARN]: Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
[11:19:43 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:168)
[11:19:43 WARN]: ... 5 more
 
well, using external ip in server.properties Ip address works as long as you do not have NAT and connection is just bridged. (thus just a modem, no router functionality)

now.. [strike]since that 100.107.16.184 seems to be correct external IP (not sure why sites offer you that 82.79.154.45, you could try it with said 100.107.16.184 IP.[/strike]

There is either second router at 100.107.16.X doing stuff or.. something is wonky, said 100.107.x.x is not normal public IP after all.

It is also possible, if the router supports multiple IP's that for the port forwarding, you might need to specify the WAN IP address as routers external IP address to forward from.

Edit:
So.. long story short, unless the ISP gave some specific direction on how to turn port forwarding on somewhere else than on router, it might be that you cannot do it. that external IP reported by router (100.107.16.184 belongs in non-internet usage "shared address space") and as such is not reachable from internet without routing/port forwarding.

the listed public IP 82.79.154.45 is correct though but... unless you can reach and configure the box that has that, you are out of luck.
 

zenkor11

Prominent
Sep 14, 2017
15
0
510


 

zenkor11

Prominent
Sep 14, 2017
15
0
510
so, i found this thread:
https://askubuntu.com/questions/579991/router-page-and-online-ip-showing-page-show-different-ip

in which someone else have 2 different external IPs from a ip check site and from the router, now another weird thing that i observed is that is not like this all the time cause as far as i remember sometimes after restarting the router(i have dinamic IP) i checked the router page and a site and they were both identical IPs...how can be this so weird, as i know some people do forward very easy from first attempt, it's just...it should work after all the possible things that i've tried...maybe i'm gonna open a thread in my country too where my ISP is popular...now the server would be just one of things i would do with the forward as i need it for a remote control app too so this is just frustrating...