登 录
import java.net.InetAddress;
System.out.println("host name="+InetAddress.getLocalHost().getHostName());
System.out.println("ip ="+InetAddress.getLocalHost().getHostAddress());
抱歉!评论已关闭.