lan

How to disable/enable network connection in c#

时光怂恿深爱的人放手 提交于 2019-11-26 16:27:01
问题 Basically I'm running some performance tests and don't want the external network to be the drag factor. I'm looking into ways of disabling network LAN. What is an effective way of doing it programmatically? I'm interested in c#. If anyone has a code snippet that can drive the point home that would be cool. 回答1: Found this thread while searching for the same thing, so, here is the answer :) The best method I tested in C# uses WMI. http://www.codeproject.com/KB/cs/EverythingInWmi02.aspx Win32

In C# how do I get the list of local computer names like what one gets viewing the Network in windows explorer

こ雲淡風輕ζ 提交于 2019-11-26 14:39:46
问题 There are a lot of questions about getting the name and IP addresses of the local machine and several about getting IP addresses of other machines on the LAN (not all answered correctly). This is different. In windows explorer if I select Network on the side bar I get a view of local machines on my LAN listed by machine name (in a windows workgroup, anyway). How do I get that same information programatically in C#? 回答1: You can try using the System.DirectoryServices namespace. var root = new

How do I access ARP-protocol information through .NET?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 12:19:27
I am trying to figure out what devices are online and offline in our LAN. I've seen many programs doing a kind of graphical network overview, presenting LAN IP and MAC addresses. I would like to know if and how those (ARP?) information can be pulled from C#/.NET ? Any sample code snippets/links would be appreciated. Rex Logan If you know which devices are out there you can use the Ping Class . This will allow you to at least fill up the ARP table. You can always execute ARP -a and parse the output if you have to. Here is also a link that shows how to pinvoke to call GetIpNetTable . I have

Error when trying to access XAMPP from a network [closed]

风流意气都作罢 提交于 2019-11-26 10:09:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I get following error when trying to access Xampp from a network I\'ve tried but does not get any idea how to resolve it. Any help??I really confused Access Forbidden : Access to the requested Object is only available from the local network. This setting can be configured in the file \"httpd-xampp.conf\". 回答1:

How do I access ARP-protocol information through .NET?

廉价感情. 提交于 2019-11-26 02:56:47
问题 I am trying to figure out what devices are online and offline in our LAN. I\'ve seen many programs doing a kind of graphical network overview, presenting LAN IP and MAC addresses. I would like to know if and how those (ARP?) information can be pulled from C#/.NET ? Any sample code snippets/links would be appreciated. 回答1: If you know which devices are out there you can use the Ping Class. This will allow you to at least fill up the ARP table. You can always execute ARP -a and parse the output

How to enable local network users to access my WAMP sites?

你离开我真会死。 提交于 2019-11-25 23:37:00
问题 First of all, I read at least 20 articles about this topic, and not one of them can match up the scenario and I screwed up the process numerous times. So I turn help by offering my specific scenario if any help will be appreciated. Laptops or other devices are connected through a wireless router. I\'ve tried: Enable Port 80 on firewall. nothing happened. Run ping , ipconfig and tried IPv4 address there, denied access or bring me to verizon (my ISP), router config page. Tried config Apache,