how can I test own local IP address# Java - 爪哇娇娃
p*p
1 楼
I want to test if a giving IP address is my PC's IP address
address = "193.175.XXXXXX";
InetAddress ia = InetAddress.getByName(address);
if(ia.isSiteLocalAddress()) {
....
does not work.
address = "193.175.XXXXXX";
InetAddress ia = InetAddress.getByName(address);
if(ia.isSiteLocalAddress()) {
....
does not work.