1 .  Win+ R 打开 cmd
2 .  netsh winsock reset catalog
3 .  netsh int  ip reset reset. log
4 .  重启
5 .  手动配置IP地址
6 .  查看IP状态时,就不会再出现自动分配的IP
			using  System. Security. Principal ; var =  "" ; var =  "" ; var =  new  List< string >  ( ) ;  WindowsIdentity  current =  WindowsIdentity. GetCurrent ( ) ; WindowsPrincipal  principal =  new  WindowsPrincipal ( current) ; string =  current. Name; if  ( username. Contains ( "\\" ) ) { string [ ] =  username. Split ( '\\' ) ; a =  parts[ 0 ] ; b =  parts[ 1 ] ; } else { } foreach  ( IdentityReference  group  in  current. Groups) { try { NTAccount  ntAccount =  ( NTAccount) group . Translate ( typeof ( NTAccount ) ) ; if  ( ntAccount. Value. Contains ( "\\" ) ) { string [ ] =  ntAccount. Value. Split ( '\\' ) ; string =  groupParts[ 0 ] ; string =  groupParts[ 1 ] ; if  ( a ==  domainOfGroup) { var =  vs. Where ( x =>  groupName. Contains ( x) ) . ToList ( ) ; if  ( d. Count ( )  >  0 ) { c. Add ( d[ 0 ] ) ; } } } else { } } catch  ( Exception ) { c =  new  List< string >  ( ) ; } }