Posted January 25, 201411 yr Hi! So, how I can get the server address (which I connected) by the client? I had searched, but I couldnt found it.
January 25, 201411 yr Hi I know not-much about TCP/IP, but some random places you might look: INetworkManager (TcpConnection) in Minecraft.getMinecraft().thePlayer.sendQueue.getNetManager() perhaps .getSocketAddress? It's created by ThreadConnectToServer.run It looks like you might be able to intercept FMLNetworkHandler. onClientConnectionToRemoteServer to record it (use registerConnectionHandler) -TGG
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.