解决方案 »

  1.   

    public static void main(String[] args) throws IOException {

    Runtime.getRuntime().exec("cmd.exe /c start www.ip138.com");
    }
      

  2.   

    可以利用淘宝的ip地址库
    http://www.open-open.com/lib/view/open1341392777031.html
    里面有具体介绍的。
    很好的东西楼主应该很满意吧。。
      

  3.   

    http://blog.csdn.net/jdgdf566/article/details/16357677
    访问www.ip138.com
      

  4.   

    怎么获取外网ip地址,我用的是局域网,我只会获得局域网内ip
      

  5.   

    只能通过ip库判断吧,不过有时候获取的ip未必是真实的,可以代理的嘛