InetAddress
来源:互联网 发布:淘宝僵尸店宝贝上万个 编辑:程序博客网 时间:2024/06/13 21:50
package test;import java.io.IOException;import java.net.InetAddress;public class Test { public static void main(String[] args) throws IOException { String url="www.baidu.com";//不知为什么加上http://报错 InetAddress address=InetAddress.getByName(url); System.out.println("baidu的IP地址:" + address.getHostAddress()) ; } /** *baidu的IP地址:119.75.217.109 */}
0 0
- InetAddress
- InetAddress
- InetAddress
- inetaddress
- 使用InetAddress
- InetAddress测试
- InetAddress类
- InetAddress类
- 3 InetAddress
- 创建 InetAddress
- InetAddress & InetSocketAddress
- InetAddress 解析
- InetAddress类 示例
- 6.3UDP InetAddress
- InetAddress.getLocalHost()详解
- InetAddress类的使用
- Java网络编程InetAddress
- InetAddress.getLocalHost问题
- 让程序员跳槽的非钱原因
- 关于我的博客
- Activity四种启动方式
- 使用C3P0抛出UnknownHostException异常
- Mac下安装Redis
- InetAddress
- Sicily 1931. 卡片游戏
- [leetcode] Unique Paths
- scala必知必会之列表的map,flatMap,zip和reduce
- 30 分钟快快乐乐学 SQL Performance Tuning
- Spring3.0与Quartz的整合实现定时任务调度
- ios 类型编码表
- Java中ArrayList 的remove&removeall
- 斗地主之洗牌(shuffle)程序的测试程序