Minecraft getsockopt error with shareable ip

When I open a minecraft server with server.jar and assign an ip to it with playit.gg neither I nor my friends can join using the sharable ip. It gives out an error: Failed to connect server Connection timed out: getsockopt. when I look at the game log it gives this output:

Couldn’t connect to server
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: getsockopt: 19.ip.gl.joinmc.link./147.185.221.19:7234
Caused by: java.net.ConnectException: Connection timed out: 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:973)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.lang.Thread.run(Thread.java:1583)

How do I solve this issue?

3 Likes

Same issue! I have even tried on another device in the same LAN as the MC server that I know can access it and entered the end address as the address I know can access it. Still nothing…

1 Like

Issue still persists but I suspect it is modem specific rather than an issue on Playit.gg’s end. For example, it worked in one apartment’s internet but not another. If I find a resolution I will update here, but for now I’ve only worked around it.

been a year now dude have you found a work around?

I am also running into the same issue. I’m running a Minecraft server using AMP on a ubuntu server. I am able to join using my local IP but when I try to join using the IP assigned by Playit I get the same error: Connection timed out: getsockopt. I’ve tried trouble shooting and can’t seem to find an answer. I’ve changed the DNS on my server to 8.8.8.8, 8.8.4.4. and that didn’t work. Playit shows that the agent is active and the primary endpoint on AMP matches with what I’ve entered into Playit for local IP and port. Playit was working fine for me for months but I took a breaks from games for a bit and now nothing seems to be working.

1 Like

I actually have the same setup but half of my players can connect no problem while the other half get getsockopt. I’m just bumping here in case we get an answer sometime

Same exact proces and issue as Jaedoncharron

same here now it been up for 14 hours