IPConfig实用程序和它的等价图形用户界面——Windows 95/98中的WinIPCfg可用于显示当前的TCP/IP配置的设置值。这些信息一般用来检验人工配置的TCP/IP设置是否正确。但是,如果你的计算机和所在的局域网使用了动态主机配置协议(Dynamic Host Configuration Protocol,DHCP——Windows NT下的一种把较少的IP地址分配给较多主机使用的协议,类似于拨号上网的动态IP分配),这个程序所显示的信息也许更加实用。
ipconfig -release 释放地址
Listing 4 shows a simple usage of ProcessBuilder to get your Internet configuration with the ipconfig command.
清单4说明了ProcessBuilder的一种简单用法,它使用ipconfig命令获得Internet配置信息。
As Listing 5 shows, running this program produces output similar to running ipconfig from the command line (your results will most likely vary).
如清单5所示,该程序的运行结果与在命令行中执行ipconfig所得到的结果类似(您得到的结果看起来可能有所不同)。
Snort -- if mentioned at all -- is lumped in with technical tools like traceroute or ipconfig, and assumed to be well out of the Web developer's domain.
如果提到 Snort,他们就将它与 traceroute 和 ipconfig 等技术混同起来,认为那不是 Web 开发人员应该管的。
应用推荐