Tag Archives: network

List the shortcuts in the computer’s network neighborhood in C#

This example uses the Windows Script Host to list shortcuts in the network neighborhood. Before the program can use the Windows Script Host, you must add a reference to the COM object “Windows Script Host Object Model.” To make using … Continue reading

Posted in miscellany, network | Tagged , , , , , , , , , , , | 2 Comments

See if the internet is available in C#

There are many ways you can test your network to see if the internet is available. Some methods may indicate that the network is connected if your local network is available even though the internet is not. Even if you … Continue reading

Posted in internet, interoperability | Tagged , , , , , , , , , , , , | Leave a comment

Map between host names and IP addresses in C#

When you enter a host name and click Go, the program uses the following code to look up the host and display the IP addresses associated with it. using System.Net; … // Display the entered host’s IP address. private void … Continue reading

Posted in internet, network, system | Tagged , , , , , , , , , , , , , , , | Leave a comment

See if Internet Explorer uses a proxy in C#

This example determines whether the system has Internet Explorer configured to use a proxy. Internet Explorer lets you specify proxy settings. In the Tools menu, select Internet Options. On the Connections tab, click the LAN Settings button. The goal of … Continue reading

Posted in internet, network, system | Tagged , , , , , , , , , , | Leave a comment

Access firewall information and check firewall status using the dynamic keyword in C#

This advanced firewall example comes from Special Guest Blogger John Mueller. John is a prolific author who’s written more than 86 books on all sorts of topics including operating systems, working with the command-line, Python, Visual Basic, and of course … Continue reading

Posted in internet, network, system | Tagged , , , , , , , , , , , , | 2 Comments