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.

解决方案 »

  1.   

    我下载之resin后 不知道怎么用。是不是不用安装啊。可是我找不到
    iis_srun.dll怎么回事。帮帮忙   
      

  2.   

    在windows目录下查找hosts文件(没有扩展名),在里面作解析
    加上,如:
    192.168.0.1   www.jiaowei.com
    就OK了
      

  3.   

    本机按你的配置没问题了。可是整个客户端却没法浏览。(客户端win98)