java.net.InetAddressgetByName
public static InetAddress getByName(String host)
throws UnknownHostExceptionDetermines the IP address of a host, given the host's name. The host name can either be a machine name, such as "java.sun.com", or a string representing its IP address, such as "206.26.48.100".
Parameters:
host - the specified host, or null for the local host.
Returns:
an IP address for the given host name.
public static InetAddress getByName(String host)
throws UnknownHostExceptionDetermines the IP address of a host, given the host's name. The host name can either be a machine name, such as "java.sun.com", or a string representing its IP address, such as "206.26.48.100".
Parameters:
host - the specified host, or null for the local host.
Returns:
an IP address for the given host name.
iis_srun.dll怎么回事。帮帮忙
加上,如:
192.168.0.1 www.jiaowei.com
就OK了