AxNetwork 6.1.2.5031
dotnet add package AxNetwork --version 6.1.2.5031
NuGet\Install-Package AxNetwork -Version 6.1.2.5031
<PackageReference Include="AxNetwork" Version="6.1.2.5031" />
<PackageVersion Include="AxNetwork" Version="6.1.2.5031" />
<PackageReference Include="AxNetwork" />
paket add AxNetwork --version 6.1.2.5031
#r "nuget: AxNetwork, 6.1.2.5031"
#:package AxNetwork@6.1.2.5031
#addin nuget:?package=AxNetwork&version=6.1.2.5031
#tool nuget:?package=AxNetwork&version=6.1.2.5031
ActiveXperts Network Component is a Network Communication component for Windows developers.
- Easy to use API
- Supporting IPv4 and IPv6
- Supporting all common TCP and UDP protocols
- Single DLL, 64-bit and 32-bit
- Samples available in C#, VB, ASP.NET, HTML, PHP, Javascript, Delphi and more
How to use
Find a stand-alone windows installer here
Or download the full package which includes a number of working examples for C#, VB.Net, ASP.NET, C++, etc.. here: ActiveXperts Download Area
Simple C# code snippet opens an SSH session to a remote SSH host and executes a command
using System; using System.IO; using AxNetwork;
namespace SshDemo { class SshDemo { [STAThread] static void Main(string[] args) { AxNetwork.Ssh objSsh = new AxNetwork.Ssh(); // Create instance of COM Object string strDemoHost = "ssh.activexperts-labs.com", strDemoUser = "axnetwork", strDemoPassword = "topsecret";
// A license key is required to unlock this component after the trial period has expired.
// Call 'Activate' with a valid license key as its first parameter. Second parameter determines whether to save the license key permanently
// to the registry (True, so you need to call Activate only once), or not to store the key permanently (False, so you need to call Activate
// every time the component is created). For details, see manual, chapter "Product Activation".
/*
objSsh.Activate( "XXXXX-XXXXX-XXXXX", false );
*/
// Display component information
Console.WriteLine("ActiveXperts Network Component {0}\nBuild: {1}\nModule: {2}\nLicense Status: {3}\nLicense Key: {4}\n", objSsh.Version, objSsh.Build, objSsh.Module, objSsh.LicenseStatus, objSsh.LicenseKey);
// Set Logfile (optional, for debugging purposes)
objSsh.LogFile = Path.GetTempPath() + "Ssh.log";
Console.WriteLine("Log file used: {0}\n", objSsh.LogFile);
objSsh.Host = ReadInput("Enter host/IP address", strDemoHost, false);
Console.WriteLine("Host: {0}", objSsh.Host);
if (objSsh.Host == strDemoHost)
{
objSsh.UserName = strDemoUser;
objSsh.Password = strDemoPassword;
objSsh.PrivateKeyFile = "";
}
else
{
objSsh.UserName = ReadInput("Enter Login", strDemoUser, false);
objSsh.Password = ReadInput("Enter Password (Optional)", strDemoPassword, true);
objSsh.PrivateKeyFile = ReadInput("Enter private key file (Optional)", "", true);
}
Console.WriteLine("UserName: {0}", objSsh.UserName);
Console.WriteLine("Password: {0}", objSsh.Password);
// objSsh.Port = 22; // Default port: 22
objSsh.AcceptHostKey = true; // Automatically accept and store the host key if it is changed or unknown
objSsh.ConnectTimeout = 30000;
Console.WriteLine("OpenSession...");
objSsh.OpenSession();
Console.WriteLine("OpenSession, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));
if (objSsh.ProtocolError != "")
Console.WriteLine("ProtocolError: {0}", objSsh.ProtocolError);
while (objSsh.IsSessionOpened())
{
objSsh.Command = ReadInput("Enter command (type 'QUIT!' to quit)", @"ls", true);
if (objSsh.Command == "QUIT!")
break;
Console.WriteLine("Command: {0}", objSsh.Command);
Console.WriteLine("ExecuteCommand...");
objSsh.ExecuteCommand();
Console.WriteLine("ExecuteCommand, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));
if (objSsh.ProtocolError != "")
Console.WriteLine("ProtocolError: {0}", objSsh.ProtocolError);
if (objSsh.LastError == 0)
{
Console.WriteLine("STDERR: ");
Console.WriteLine(objSsh.StdErr);
Console.WriteLine("STDOUT: ");
Console.WriteLine(objSsh.StdOut);
}
}
objSsh.CloseSession();
Console.WriteLine("CloseSession, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));
Console.WriteLine("Ready.");
System.Threading.Thread.Sleep(3000); // Sleep for 3 second before exit
}
static private string ReadInput(string strTitle, string strDefaultValue, bool bAllowEmpty)
{
String strInput, strReturn = "";
if (strDefaultValue == "") Console.WriteLine("{0}:", strTitle);
else Console.WriteLine("{0}, leave blank to use: {1}", strTitle, strDefaultValue);
do
{
Console.Write(" > ");
strInput = Console.ReadLine();
if (strInput.Length > 0)
strReturn = strInput;
} while (strReturn == "" && !bAllowEmpty && strDefaultValue == "");
if (strReturn == "") return strDefaultValue;
else return strReturn;
}
}
}
Support
Any questions or need an extension of the trial period? Please send us an email at: support@activexperts.com
Pricing and purchasing
This product is a fully functional 30 day trail.
Find more information about pricing and how to purchase or our sales page: ActiveXperts Customer Services
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
6.1.2.5031 | 157 | 6/14/2025 |