A
Admincraftβ€’3w ago
zfalstic

Potential Port Forwarding Issue (maybe CGNAT?)

I'm creating a 1.20.1 forge server with ~70 mods for some of my friends. However, whenever I try to connect to it via my external IP address (I think that's what it's called) most of the time I connection time out, and only occasionally successfully connect. I've checked my portforwarding through https://canyouseeme.org/ and it comes back valid. Connecting to the server via the local device IP address works so that's why I'm inclined to believe it's a portforwarding issue. Looked into it a bit and I don't believe I suffer from CGNAT with my ISP (AT&T Fiber). The IPv4 address from my router configuration interface matches the public ip on https://whatismyipaddress.com/ and it doesn't fall into any of the CGNAT ranges. Previously, I have hosted forge servers on this computer with my last ISP (Xfinity), but that was cable instead of fiber, not sure if that would have any impact at all. Looking for any troubleshooting techniques / solutions
Open Port Check Tool -- Verify Port Forwarding on Your Router
A free open port check tool used to detect open ports on your connection. Test if port forwarding is correctly setup or if your port is being blocked by your firewall or ISP.
85 Replies
zfalstic
zfalsticOPβ€’3w ago
No description
zfalstic
zfalsticOPβ€’3w ago
No description
zfalstic
zfalsticOPβ€’3w ago
No description
zfalstic
zfalsticOPβ€’3w ago
In this test, the [INFO] Public IPv4 and [INFO] Public IPv6 lines had the same IPv6 format address Odd
Tamz
Tamzβ€’3w ago
you port forwarded, internally (ur machine) and externally (ur router) ?
zfalstic
zfalsticOPβ€’3w ago
only my router ...
Tamz
Tamzβ€’3w ago
you uh, need to do on ur pc too :yes: thats why it shows Not Open tcp port
zfalstic
zfalsticOPβ€’3w ago
how to do that? I selected my PC as the device to port forward in my router
Tamz
Tamzβ€’3w ago
Database Mart
YouTube
How to Open a Port in Windows Firewall
#WindowsVPS #windowsFirewall #VPS hosting #Port Sometimes, well-known applications (for example, SQL Server ) get blocked by the Microsoft Defender Firewall. When this happens, you'll need to manually create a rule to allow them to access the network. This video will teach you the steps to open a port to allow an app to communicate outside the n...
Tamz
Tamzβ€’3w ago
thats a pretty good video i found ngl, damn ah its a windows SERVER, but good enough roughly the same process for a windows pc
zfalstic
zfalsticOPβ€’3w ago
I added both inbound rules for 25565 TCP and UDP and the Command Line test still says TCP not open. Not sure if you saw earlier in my post but https://canyouseeme.org/ sees the open port, also I have hosted before on this computer fine
Open Port Check Tool -- Verify Port Forwarding on Your Router
A free open port check tool used to detect open ports on your connection. Test if port forwarding is correctly setup or if your port is being blocked by your firewall or ISP.
Tamz
Tamzβ€’3w ago
inbound and outbound?
zfalstic
zfalsticOPβ€’3w ago
yes
Tamz
Tamzβ€’3w ago
hmm not too sure i’d check online or ask ai (common situation most high level thinking modes will give good answers) i gotta sleep lol
zfalstic
zfalsticOPβ€’3w ago
yes connecting locally works via local host or the 192.168 local device address
zfalstic
zfalsticOPβ€’3w ago
yes localhost only from hosting pc but the 192.168.x.x works
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
yeah thats normal do you know if you have a somewhat static wan ip
zfalstic
zfalsticOPβ€’3w ago
what does that mean
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
is your public ip somewhat static
zfalstic
zfalsticOPβ€’3w ago
I believe so In the time I've spent trying to troubleshoot / setup my public ip has remained the same
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
and connecting to public ip only works sometimes?
zfalstic
zfalsticOPβ€’3w ago
yeah other times it connection times out
zfalstic
zfalsticOPβ€’3w ago
yeah idfk
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
is the hosting pc windows or linux?
zfalstic
zfalsticOPβ€’3w ago
windows I tried hosting on my mac mini as well same issue
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
iex (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/DominicTWHV/Is-It-CGNAT/refs/heads/main/windows.ps1")
iex (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/DominicTWHV/Is-It-CGNAT/refs/heads/main/windows.ps1")
Run in powershell
zfalstic
zfalsticOPβ€’3w ago
with server on?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
yeah and paste output here
zfalstic
zfalsticOPβ€’3w ago
pasting ip ok?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
you can blur that out, it doesnt matter that much
zfalstic
zfalsticOPβ€’3w ago
ok well its the exact same as this again PS C:\Users\dawso> iex (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/DominicTWHV/Is-It-CGNAT/refs/heads/main/windows.ps1") [INFO] Public IPv4: 2600:1702:5c61:c040:31ef:a3b9:8c68:2306 [INFO] Public IPv6: 2600:1702:5c61:c040:31ef:a3b9:8c68:2306 Please now confirm your Minecraft is turned ON and running properly. Which port does your Minecraft server run on? (e.g., 25565): 25565 [INFO] Default Gateway: 192.168.1.254 [INFO] Running traceroute for IPv4... Tracing route to DAWSON-PC.attlocal.net [2600:1702:5c61:c040:31ef:a3b9:8c68:2306] over a maximum of 2 hops: 1 <1 ms <1 ms <1 ms DAWSON-PC.attlocal.net [2600:1702:5c61:c040:31ef:a3b9:8c68:2306] Trace complete. [INFO] -------------------------------------- [INFO] No CGNAT detected. Only one or no internal IPs found. [ERROR] Error checking port 25565. Ensure you have internet access. [ERROR] You should not be behind CGNAT for IPv4, but your TCP port 25565 is not open. PS C:\Users\dawso>
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
ah i think i know whats up do you have ipv4?
zfalstic
zfalsticOPβ€’3w ago
I believe so on my router configurator there's an "IPv4 Broadband"
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
that is very weird, normal ipv4 conditions should not display ipv6 in the output field i have never seen this happen before actually
zfalstic
zfalsticOPβ€’3w ago
No description
zfalstic
zfalsticOPβ€’3w ago
this is what my router tells me and when I check my ip online it shows the "Broadband IPv4 Address" for IPv4
zfalstic
zfalsticOPβ€’3w ago
yes
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
wtf πŸ’€ unless the v4 api i used is down
zfalstic
zfalsticOPβ€’3w ago
you want me to try to run the linux command line on my mac?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
can you try visiting https://api.ipify.org/ and see whats the output? the linux version is outdated, i never got to updating that
zfalstic
zfalsticOPβ€’3w ago
the output is my IPv4 like the actual IPv4
zfalstic
zfalsticOPβ€’3w ago
this number broadband ipv4
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
are you using your main pc to host?
zfalstic
zfalsticOPβ€’3w ago
I want to use my secondary mac mini to host but I've been troubleshooting on my main so yes have server files on both computers rn
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
this is weird as fuck what router is that?
zfalstic
zfalsticOPβ€’3w ago
BGW320-505 AT&T provided it when we upgraded to Fiber plan
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
shit goes for $60 on ebay πŸ’€ it may or may not be a router issue tbh cant think of anything else
zfalstic
zfalsticOPβ€’3w ago
you think maybe IP passthrough would work?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
would probably trash your entire network it should be the same thing as bridge mode which if works, turns off nat
zfalstic
zfalsticOPβ€’3w ago
rip
zfalstic
zfalsticOPβ€’3w ago
does that support modded?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
ye, its just a tunnel hold on modded? forge or fabric?
zfalstic
zfalsticOPβ€’3w ago
forge
zfalstic
zfalsticOPβ€’3w ago
custom I have a curseforge code if you want to see the mods πŸ’€
zfalstic
zfalsticOPβ€’3w ago
72
zfalstic
zfalsticOPβ€’3w ago
create + addons thats about it
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
can you move the mods and world somewhere else and then try without any mods?
zfalstic
zfalsticOPβ€’3w ago
tried
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
make sure dont delete them doesnt work?
zfalstic
zfalsticOPβ€’3w ago
yup ill try again
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
i mean, gg, i cant come up with anything else. If this time it still doesnt work, you may be stuck with playit
zfalstic
zfalsticOPβ€’3w ago
I tried playit.gg it works how reliable is the tunnel do you know?
zfalstic
zfalsticOPβ€’3w ago
yeah I just tried again with pure vanilla server and same issue damn
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
gg might be a router issue then
zfalstic
zfalsticOPβ€’3w ago
wtf man yeah
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
we all know isps dont give good things to their customers anyways
zfalstic
zfalsticOPβ€’3w ago
real
SilentBot
SilentBotβ€’3w ago
Just to confirm, can your friends connect via your external IP fine? Is this only your connection via your own external IP? If so, this requires a setup called hairpin nat, which isn't always setup on ISP routers. Internally, when on the same internet connection as the server, you should be using the internal IP to connect, while people outside should be using your external IP to connect.
zfalstic
zfalsticOPβ€’3w ago
I have not tried this Ill get back to you Yup this worked, anyone not on my hosting internet can connect
SilentBot
SilentBotβ€’3w ago
Yeah, then that's something called hairpin nat, you can either fix this if your router supports it, or add a DNS overwrite for your machine/local network to go to the local address instead
zfalstic
zfalsticOPβ€’3w ago
Yeah ill probably just connect locally via the local device address Thank you so much
SilentBot
SilentBotβ€’3w ago
No worries, have fun
Juloas
Juloasβ€’2w ago
Read the whole discussion hoping someone would mention that, I always thought it was how it worked for everyone (external IP not working from within local network), isn’t that the default ?
SilentBot
SilentBotβ€’2w ago
It's the default for most, but it's possible to enable or is enabled by default for some.
Juloas
Juloasβ€’2w ago
Thanks for the knowledge πŸ˜„

Did you find this page helpful?