This question already has an answer here:
I am unable to connect to my friend's LAN server, on the Technic launcher mod pack, "Vivacity".
When he puts it up, I can't even see it in my server menu. This has also been an issue when trying to use LAN servers for other games, such as Garry's Mod. When I enter the port number and try to direct connect, it says "java.net.SocketException:Network is unreachable:no further information".
I tried using our public IP as the port, in an attempt to add it to my server list, but it says "java.net.SocketException: Connection refused: no further information"
What am I doing wrong?