关闭 APIPA

Posted midhillzhou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关闭 APIPA相关的知识,希望对你有一定的参考价值。

KrisIngmanson replied on

 

I just did this on Win7 Professional and it works. I tested it before and after making the change.

 

1. Use Registry Editor to create the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

2. Add the following value to this key:

Value name: IPAutoconfigurationEnabled
Value type: REG_DWORD
Value in hexadecimal: 0 (A value of 0 disables APIPA support on this computer)

NOTE: If the IPAutoconfigurationEnabled entry is not present, a default value of 1 is assumed, which indicates that APIPA is enabled.

3. After you make this change, restart your computer.

 
按照上述的做法,自己在win7企业版上尝试了下,有效。不再出现169.254.*.*地址。
 
参考:https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/how-do-i-disable-automatic-private-ip-addressing/1c9044d2-85a5-4cb2-ba90-ff6866a4adb1
   http://windowsitpro.com/networking/how-can-i-disable-apipa
   http://windowsitpro.com/networking/disabling-apipa
  
 
 
 


以上是关于关闭 APIPA的主要内容,如果未能解决你的问题,请参考以下文章

JFrame关闭方法的问题

debian关闭log

关闭套接字会关闭流吗?

WINFORM如何关闭主窗口?

流的关闭

如果流没有手动关闭,它啥时候关闭?