r/Minecraft • u/specialpatrick • 7d ago
Help Java Help with lan server
Me and my partner are trying to play on a lan server and two days ago it worked with absolutely no problem at all, but hasnt worked since. Its the same error everytime "getsockopt".Ive tried direct connection and made sure firewall is letting minecraft and Java through on both of our computers. Saw somewhere else that that deleting rhe serverconfig file would help to so I tried that and it didnt work either. We just want to play again lol
1
u/Regrave 7d ago
open to lan picks a new port every time unless you set one, so if you're direct connecting with the old address its pointing at a port nothing is listening on, which is what that getsockopt error usually means. the port shows in chat when the host opens to lan, or you can type a fixed one on that screen so it stays the same
1
u/specialpatrick 7d ago
I did so this is typed in the new correct port that popped up in in chat and ran the cmd in command prompt to get my ipv4 adress and it still didnt connect
2
u/Regrave 7d ago
then id check whether the host pc's network got switched to public in windows settings (network & internet, click the connection). the java firewall rule is usually only allowed on private, so a flip to public blocks it even though it looks allowed, and that would fit it working two days ago and not now
1
1
u/Relunax117 7d ago
make sure the ip address of the host is correct (set static local ip if needed) and port is correct.
•
u/qualityvote2 7d ago edited 7d ago
Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
Downvote this comment and report the post if it breaks the rules
(Vote has already ended)