Sorry, but I told you 2 times "yes" for another/real IP, NeverMore as well, and you ask it again, lol.. The answer is YES. Use another PC to get your IP, else do as I said.
Change the string
String ip = activeChar.getClient().getConnection().getInetAddress().getHostAddress();
to your external IP
String ip = "xx.xxx.xxx.xx";
and you can test on local, since you will check EXACT ip you wish.