Ok, so I'm creating this custom ban system. I want a command that checks a player's IP Address ('/checkip'). I tried using "p.getAddress().toString()", but it just gives me the wrong IP Address. Has anyone done this before? I know it's possible.
You see, I don't want the IPv4 Address, I want like the IP Address you can get at sites like https://www.whatismyip.com/
@DoggyCode™ I don't know what you think that site provides you; but thats either ipv4 or ipv6. Anyways, if you want to do the same as that site: do what @Assist or @bwfcwalshy suggested you. Note that they do: "p.getAddress().getAddress()" - aka getAddress() twice.