如何断开系统的Internet连接 [英] How to disconnect internet connection of my system
本文介绍了如何断开系统的Internet连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要断开单个系统的Internet连接,在LAN中连接,然后需要再次连接到Internet.
我怎样才能做到这一点?
我用过...
ReleaseDHCPLease
和RenewDHCPLease
但这没用
I need to disconnect internet connection of my single system, connected in LAN, and I need to connect again to the internet.
How could I make this happen?
I used...
ReleaseDHCPLease
and RenewDHCPLease
But it didn''t work
Help me!!
推荐答案
您可以使用wininet.dll
的InternetHangUp
方法.
http://pinvoke.net/default.aspx/wininet/InternetHangUp.html [ ^ ]
You can useInternetHangUp
method ofwininet.dll
.
http://pinvoke.net/default.aspx/wininet/InternetHangUp.html[^]
这可能帮助,但我还没有测试过:
http://www.eggheadcafe. com/community/aspnet/2/10068229/how-to-disconnect-the-internet-connection-using-c.aspx [ ^ ]
Google揭示了所有内容:
[
This might help, but I haven''t tested it:
http://www.eggheadcafe.com/community/aspnet/2/10068229/how-to-disconnect-the-internet-connection-using-c.aspx[^]
Google reveals all:
Search results for "C# disconnect machine from internet"
[^]
您可以将计算机上的默认网关"更改为计算机自己的IP地址或0.0.0.0
You can change "default gateway" on the computer to the computers own IP address or 0.0.0.0
这篇关于如何断开系统的Internet连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文