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
Upvotes
•
u/qualityvote2 7d ago edited 7d ago
(Vote has already ended)
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/Relunax117 7d ago
make sure the ip address of the host is correct (set static local ip if needed) and port is correct.