1-1-15-2 急问:获取本机IP地址的方法
发信人: xkb (飞行猪), 信区: Java标题: Re: 急问:获取本机IP地址的方法
发信站: BBS 水木清华站 (Thu Jun 27 13:14:56 2002)
查MSDN啊
InetAddress.getHostAddress
Class Overview | Class Members | This Package | All Packages
Syntax
public String getHostAddress()
Returns
raw IP address in a string format
Description
Returns the IP address string "%d.%d.%d.%d"
【 在 crease (snow) 的大作中提到: 】
: InetAddress.getHostAddress(InetAddress.getLocalHost().getHostName())的返回值
: 型是什么?
页:
[1]