This code example best suits people with at least a beginner's experience using the C# programming language.
To run this code you'll need a C# compiler such as Visual Studio. You can follow this tutorial to create a simple Visual Basic console application.
You should also have a Decodo account with access to the dashboard to get your credentials and endpoint information.
The example is built using Visual Studio. You can run it by following these steps:
- Create a new Console App.
- Using a terminal of your choice, navigate to the project's directory.
- Copy the code from here or run this cURL command to download the code:
curl https://raw.githubusercontent.com/Decodo/Decodo/master/csharp/csharp.cs > csharp.cs
- You should see a new file named csharp.cs in your project folder.
To run this C# example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:
var proxy = new WebProxy("gate.decodo.com:7000")
{
UseDefaultCredentials = false,
Credentials = new NetworkCredential(
username: "username",
password: "password",
)
};
You should see an IP address in the console window if everything was set up correctly.
Email - [email protected]

