Recent Discussions

GetSockOpt error

Unanswered
Tramp ant posted this in #questions
Messages13 messages
Views0 views
Tramp antOP
Hello, I'm trying to run a Forge 1.20.1 server. I've set up port forwarding on my router for port 25565 and I've verified the port is open. For some reason I can't connect. The server is online, but when I enter <my IP>:25565 and try to connect, no server info loads and I cannot connect, getting a getsockopt error. Nothing shows in the server console when I try to connect, but my game's console says:

[14:42:34] [Render thread/INFO]:Connecting to <IP>, 25565
[14:42:55] [Server Connector #1/ERROR]:Couldn't connect to server
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: getsockopt: c-<IP>.hsd1.ut.comcast.net/<IP>:25565
Caused by: java.net.ConnectException: Connection timed out: getsockopt
at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at java.lang.Thread.run(Thread.java:840) ~[?:?]

Not sure what to do. The port is open, I've checked my firewall settings and allowed javaw.exe and minecraft.exe to communicate on my network. I've hosted a server before and had no issues, but I have a new router since then. Again, the port is open, the port forwarding rule is in effect. So it's probably something else. Just not sure what.
@Tramp ant Hello, I'm trying to run a Forge 1.20.1 server. I've set up port forwarding on my router for port 25565 and I've verified the port is open. For some reason I can't connect. The server is online, but when I enter <my IP>:25565 and try to connect, no server info loads and I cannot connect, getting a getsockopt error. Nothing shows in the server console when I try to connect, but my game's console says:

[14:42:34] [Render thread/INFO]:Connecting to <IP>, 25565
[14:42:55] [Server Connector #1/ERROR]:Couldn't connect to server
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: getsockopt: c-<IP>.hsd1.ut.comcast.net/<IP>:25565
Caused by: java.net.ConnectException: Connection timed out: getsockopt
at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at java.lang.Thread.run(Thread.java:840) ~[?:?]

Not sure what to do. The port is open, I've checked my firewall settings and allowed javaw.exe and minecraft.exe to communicate on my network. I've hosted a server before and had no issues, but I have a new router since then. Again, the port is open, the port forwarding rule is in effect. So it's probably something else. Just not sure what.
!logs
:facepalm:
!mclogs
ok ty bot
Can you post the error you are getting in mclogs and not line by line
Tramp antOP
Where/what is mclogs?
Tramp antOP
@Tramp ant Hello, I'm trying to run a Forge 1.20.1 server. I've set up port forwarding on my router for port 25565 and I've verified the port is open. For some reason I can't connect. The server is online, but when I enter <my IP>:25565 and try to connect, no server info loads and I cannot connect, getting a getsockopt error. Nothing shows in the server console when I try to connect, but my game's console says:

[14:42:34] [Render thread/INFO]:Connecting to <IP>, 25565
[14:42:55] [Server Connector #1/ERROR]:Couldn't connect to server
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: getsockopt: c-<IP>.hsd1.ut.comcast.net/<IP>:25565
Caused by: java.net.ConnectException: Connection timed out: getsockopt
at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.82.Final.jar%23128!/:4.1.82.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar%23123!/:4.1.82.Final]
at java.lang.Thread.run(Thread.java:840) ~[?:?]

Not sure what to do. The port is open, I've checked my firewall settings and allowed javaw.exe and minecraft.exe to communicate on my network. I've hosted a server before and had no issues, but I have a new router since then. Again, the port is open, the port forwarding rule is in effect. So it's probably something else. Just not sure what.
Connecticut Warbler
use https://mcsrvstat.us
hairpin nat can cause you not to be able to connect to it from same internet
Tramp antOP
Interesting, so it might be working then?
says so on the site
guess I need to use my local IP for it then
Loading...