| 热门文章 |
 |
|
| 编辑推荐 |
 |
|
|
|
|
|
作者:佚名
来源:不详 点击: 更新:2006-12-19
|
|
You may use the class InetAddress, method is getByName.
String ip_address = "111.11.11.111"; InetAddress host_name = InetAddress.getByName(ip_address); String Ip_address = host_name.toString();
it can get the computer'ip and name. for example : computer a , ip is 111.11.11.111
you may use for(){
}
|
|
|