Following code blow:
//Get ip of client
ip = InetAddress.getLocalHost().getHostAddress();
//get name of client:
name = InetAddress.getLocalHost().getHostName();
//Get ip of client
ip = InetAddress.getLocalHost().getHostAddress();
//get name of client:
name = InetAddress.getLocalHost().getHostName();
0 comments:
Post a Comment