Locally Hosted Server Port Forwarding Issues

Trying to locally host a server using spectrum but I can't connect to the server myself
58 Replies
Admincraft Meta
Admincraft Meta8mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by sfgoose#0
Discount Milk
Discount Milk8mo ago
Spectrum routers don't have loop back NAT. Check to make sure the server can be seen using mcsrvstat.us, and connect using the local IP. https://mcsrvstat.us/
SFGoose
SFGooseOP8mo ago
using the provided link it was not able to see my server. Is there other steps I gotta take since it does not have loop back NAT
Discount Milk
Discount Milk8mo ago
Loop back NAT is just you accessing your server from your own public IP If mcsrvstat.us can't find it. You didn't port forward properly
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
first make sure lan ip works you trying wan in a lan range could also be an issue, as its called hairpinning make sure lan works -> server is confirmed to be running use port checker to check if port is opened
SFGoose
SFGooseOP8mo ago
No description
SFGoose
SFGooseOP8mo ago
it said closed, but this is how I have it setup atm
Discount Milk
Discount Milk8mo ago
Doesn't look like my spectrum router page for port forwarding. Are you sure you did it right?
SFGoose
SFGooseOP8mo ago
this is slightly different as I am using the spectrum business website
Discount Milk
Discount Milk8mo ago
:thonk:
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
do you have cgnat? !cgnat
Carl-bot
Carl-bot8mo ago
We may have bad news for you :C
Open your router's configuration interface. Somewhere you'll see something like 'external' or 'public' IP. If your external IP is in one of the following ranges, you're basically screwed as long as portforwards go: - 10.0.0.0/8 - 172.16.0.0/20 - 192.168.0.0/16 - 100.64.0.0/10 - any IPv6 address/range - This shouldn't be a problem, but Minecraft's IPv6 support is still rather quirky. You're at your own but we're happy if you share your experience. You should ask your ISP for a public and IPv4 address (but this may cost you money). NB: your internal IP should and most probably will be in one of the first three ranges, don't mix them up
Admincraft Canned Responses
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
or the other way check the wan ip of your router
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
then check what is your public ip using one of these https://www.whatismyip.com/
WhatIsMyIP.com®
What Is My IP?
Check the IP address assigned to your device. Show my IP city, state, and country. What Is An IP Address? IPv4, IPv6, public IP explained.
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
if they dont match, cgnat
SFGoose
SFGooseOP8mo ago
Following this
"Log into your router and look for its WAN/Internet IP address. If it's any of the following, then your router doesn't have a public IP address.

192.168.x.x

10.x.x.x

172.16.x.x through 172.31.x.x

100.64.x.x through 100.127.x.x"
"Log into your router and look for its WAN/Internet IP address. If it's any of the following, then your router doesn't have a public IP address.

192.168.x.x

10.x.x.x

172.16.x.x through 172.31.x.x

100.64.x.x through 100.127.x.x"
I believe I do have a public IP
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
use this if the ip on here matches your wan ip in router, then you should be good if not, cgnat
SFGoose
SFGooseOP8mo ago
wan IP would be the default gateway when doing ipconfig in command prompt right
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
no default gateway is the lan ip
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
everything in ipconfig is local
SFGoose
SFGooseOP8mo ago
No description
SFGoose
SFGooseOP8mo ago
AI has hindered this process lmao I trust you
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
bullshit i dont own a spectrum router, but check if you have an interfaces tab if so, then you can likely find it under that
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
in my case:
No description
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
@SFGoose just screenshot your router's management page
SFGoose
SFGooseOP8mo ago
No description
SFGoose
SFGooseOP8mo ago
^
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
okay now what does it say in whatsmyip.com you should be good tho i dont think thats a cgnat range]
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
@SFGoose looks good to me
No description
SFGoose
SFGooseOP8mo ago
I called spectrum to confirm, but they stated WAN IP: 104.136.170.74 while the desktop hosting it is 192.168.1.179
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
mind if I join your server to test it?
SFGoose
SFGooseOP8mo ago
go for it I'm also horrible with the domain setup but it's supposed to also connect from mc.unicornacopia.net
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
okay gimme a sec to start the client which version?
SFGoose
SFGooseOP8mo ago
1.20.1
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
niche version but okay ill just launch with 1.21 and see if minecraft can ping it
SFGoose
SFGooseOP8mo ago
tbh I want the latest but I just wanted to get it up and running first should I be using the 192.168.1.179 address to join were you able to get in
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
sorry, went out to get some food i dont think your dns record propagated yet
SFGoose
SFGooseOP8mo ago
I also probs did that one wrong but did the IP itself work
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
ill try it after i get home
SFGoose
SFGooseOP8mo ago
I think this is resolved and connectable by mc.unicornacopia.net So this is connectable now, but can't get it to connect beyond the proxy server and just gives an error, sends back to menu
Discount Milk
Discount Milk8mo ago
Brb reading minds to figure out what the error is
SFGoose
SFGooseOP8mo ago
"Unable to connect you to lobby, please try again later" Server logs:
ERROR10:35:17
[connected player]: SFGooseTTV (/50.89.29.183:58343): unable to connect to server lobby
Console10:35:17
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: getsockopt: /104.136.170.74:25569
Caused by: java.net.ConnectException: Connection refused: getsockopt
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) ~[?:?]
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:1060) ~[?:?]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:335) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at java.base/java.lang.Thread.run(Thread.java:1570) [?:?]
ERROR10:35:17
[connected player]: SFGooseTTV (/50.89.29.183:58343): unable to connect to server lobby
Console10:35:17
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: getsockopt: /104.136.170.74:25569
Caused by: java.net.ConnectException: Connection refused: getsockopt
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) ~[?:?]
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:1060) ~[?:?]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:335) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-3.3.0-SNAPSHOT-413.jar:3.3.0-SNAPSHOT (git-09f687e5-b413)]
at java.base/java.lang.Thread.run(Thread.java:1570) [?:?]
this is very valid lmao
Discount Milk
Discount Milk8mo ago
Why are you putting your public IP into velocity If it's on the same network use the local IP
SFGoose
SFGooseOP8mo ago
Would that still work for people connecting outside the network?
Discount Milk
Discount Milk8mo ago
Yes, because velocity is still listening to incoming connections from the outside
SFGoose
SFGooseOP8mo ago
ERROR10:47:58
[connected player]: SFGooseTTV (/50.89.29.183:59189): unable to connect to server lobby
Console10:47:58
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: getsockopt: /192.168.1.1:25569
Caused by: java.net.ConnectException: Connection refused: getsockopt
ERROR10:47:58
[connected player]: SFGooseTTV (/50.89.29.183:59189): unable to connect to server lobby
Console10:47:58
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: getsockopt: /192.168.1.1:25569
Caused by: java.net.ConnectException: Connection refused: getsockopt
I believe I tried that right, the original IP is what I have the domain pointing to
Discount Milk
Discount Milk8mo ago
That IP isn't right
SFGoose
SFGooseOP8mo ago
this is such a different experience than hosting with a provider lmao thank you for your patience
SFGoose
SFGooseOP8mo ago
This is what shows in my panel
No description
SFGoose
SFGooseOP8mo ago
if I do 0.0.0.0 I get the same error
Discount Milk
Discount Milk8mo ago
Are you using pterodactyl? Idk what panel that is
SFGoose
SFGooseOP8mo ago
This is AMP, a windows 10 alternative to pterodactyl
Discount Milk
Discount Milk8mo ago
Ah, amp. AMP has a ton of docs on how to set everything up, have you consulted the docs?
SFGoose
SFGooseOP8mo ago
nothing in depth on velocity. Should I change this and then set that in the velocity.toml?
SFGoose
SFGooseOP8mo ago
No description
SFGoose
SFGooseOP8mo ago
Nevermind, this fixed it I'm goofy thank you so much

Did you find this page helpful?