Jump to content

DatagramSocket & ServerSocket via Server Help


jredfox

Recommended Posts

Ok from what I understand:
DatagramSocket is UDP > I need to know it's function
ServerSocket might be TCP?

I found this at:
net.minecraft.network.rcon.RConThreadBase
net.minecraft.client.multiplayer.ThreadLanServerPing

I don't really know what the difference is nor why the server is running both when opening to lan. Also it appears my attempt to re-instantiate a lan port has failed on server side. I don't know what else I am missing here to change the port of the connection:
 

DedicatedServer server = (DedicatedServer) FMLCommonHandler.instance().getMinecraftServerInstance();
InetAddress inet = InetAddress.getByName(server.getServerHostname());
server.getNetworkSystem().addLanEndpoint(inet, port);
server.setServerPort(port);

 

Edited by jredfox
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.