Let me note that this mod is client-side. Sorry that I caused a misunderstanding.
Let's say player connect to "abcd.net" which leads to "1.2.3.4:25565".
I want to get "1.2.3.4:25565" string or whatever and check it if it's certain server.
Is there any way I can get multiplayer server IP address, in a form of, like "1.2.3.4"?
I'd like to validate it and make it only work in certain server.