String str = "192.168.1.100"; String[] ipStr = str.split("\\."); ]; ; i < ; i++){ ipBuf[i] = (byte)(Integer.parseInt(ipStr[i])&0xff); } try{ InetAddress ia = InetAddress.getByAddress("Server",ipBuf);
相关文章
- IP转换成LONG 的 问题
- Redis使用sortedset缓存IP段数据
- 配置IP/etc/sysconfig/network-scripts/ifcfg-ens33中各个参数的意义
- 修改 ens33 静态IP 网络接口配置文件:/etc/sysconfig/network-scripts/目录下
- mysql本地IP不能访问的问题
- mysql局域网ip无法访问(解决)
- 云服务器 —— 公有 IP 与 私有 IP
- 获取用户IP
- 1024代理服务器网站,服务器iP
- ERROR: Cannot unpack file C:\Users\ljy\AppData\Local\Temp\pip-unpack-w28ochjw\ (downloaded