如何使用vb.net与客户端/服务器架构连接和断开互联网连接 [英] how to connect and disconnect internet connection using vb.net with client/server achitecture

查看:173
本文介绍了如何使用vb.net与客户端/服务器架构连接和断开互联网连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了Shell(cmd.exe / c ipconfig / renew)和Shell(NET START DHCP),Shell(cmd.exe / c ipconfig / release)和Shell(NET STOP DHCP) )但他们没有工作。任何建议都会有很大的帮助。谢谢:)我试图制作一个程序,可以从服务器计算机禁用和启用客户端计算机的互联网连接,而无需断开局域网。是否可能?

解决方案

可能不是 - 如果你想保持局域网连接,那么你需要打破互联网连接 - 这意味着通过路由器这样做比当地的PC。每一个都是不同的,需要一个不同的程序来做到这一点。除此之外,你会严重惹恼使用相同网络连接的其他人...



你想做什么你认为这将是一个好的想法?

i have tried both Shell("cmd.exe /c ipconfig/renew") and Shell("NET START DHCP") , Shell("cmd.exe /c ipconfig/release") and Shell("NET STOP DHCP") but they did not work. any suggestions would be a great help. thanks :) im trying to make a program that can disable and enable internet connection of client computers from a server computer without disconnecting the LAN. is it possible ?

解决方案

Probably not - if you want to keep the LAN connection, then you need to break the internet connection - which means doing it via the router rather than the local PC. And each one is different, and needs a different procedure to do that. Added to which, you will severely annoy anyone else that is using the same internet connection...

What are you trying to do that you think this would be a good idea?


这篇关于如何使用vb.net与客户端/服务器架构连接和断开互联网连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆