Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest
Please, try again later.
Most connection errors involving ports in the 61xx, 93xx, 94xx, and 10xxx ranges are related to Veeam product-related services. Determine if the port in the connection error is associated with a Veeam product service. If so, ensure that the service is running on the target machine specified in the error.
Each product's user guide includes a comprehensive list of all the ports utilized by the respective product. Below are convenient links to the most frequently accessed port lists for popular products.
Ports 2500-3300 are dedicated to data transport. Those ports will only be associated with a VeeamAgent process when data is actively being transferred. When testing connection issues related to ports in that range, you will likely have to start a listener on the target machine manually.
To test the connection to a specific port, you must first ensure that a process is actively listening on that port.
Use the following PowerShell command to check which process is locking a specific port.
Update the -LocalPort value to specify the port being tested.
Get-Process -Id (Get-NetTCPConnection -LocalPort 6160).OwningProcess
The Get-NetTCPConnection cmdlet is not available in older versions of PowerShell installed with Server 2012 or older. For those legacy operating systems, you can use the following netstat command and then manually associate the process ID with a process in Task Manager.
Use the following command to list processes associated with the specified port:
Replace the port placeholder in this example with the port being tested.
netstat -aon | findstr :port | findstr LISTENING | findstr /C:":"
Use the following command to check which process is associated with a specific port.
Replace the portnumber placeholder with the port being tested.
sudo lsof -i :portnumber
If the port you are testing does not currently have a process associated with it, you must create a listener to own that port before attempting to test if the port can be reached.
Use the following PowerShell command to start a listener on the specified port.
Replace 6160 in this example with the port you are testing.
$listener = [System.Net.Sockets.TcpListener]6160; $listener.Start();
The above command will start a process in the background on the specified port. You can reuse the command from the Check Port Owner section to verify that the port is now associated with a process.
Below is an example of:
$listener.Stop();
Use the following command to start a listener on the specified port.
Replace 6160 in this example with the port you are testing.
nc -l -v -k -p 6160
This example uses Netcat (nc), which may not be installed by default on all Linux systems. Although other applications can also be used, Netcat is a commonly used tool for this purpose.
To stop the netcat listener, use Ctrl+C to stop the process.
When testing connectivity to a port, it's important to test first from the machine that Veeam used to initiate communication. If the test fails, test locally from the target machine, and then test from other machines. We test from multiple locations because firewalls within the environment may allow connections from some sources while blocking others.
The following native PowerShell command will test connectivity to the specified computer and port.
Update the -ComputerName and -Port values.
Test-NetConnection -ComputerName TargetMachine -Port ####
The Test-NetConnection cmdlet is not available in older versions of PowerShell installed with Server 2012 or older. For those legacy operating systems, use the following command to test the connection:
Replace the targetmachine and port placeholders in this example.
(New-Object System.Net.Sockets.TcpClient).Connect("targetmachine", port)
The following command will test connectivity to the specified computer and port.
Replace the targetmachine and port placeholders in this example.
nc -zv targetmachine port
If the connection test is successful, but the task within Veeam still fails, do the following:
After a failed connection test, do the following:
If the target machine can test the port to itself successfully, but remote machines cannot reach that same port, a firewall is likely blocking connections.
Below are a series of screenshot demonstrating results you will see while testing.
This is an example of a complete success, indicated by the "TcpTestSucceeded: True."
The Test-NetConnection cmdlet will first attempt to connect to the port, if that fails it will attempt to ping the remote machine. While a succesful Ping is not a requirement of Veeam, in the first example it serves to show us that some connection is possible, just not to the port specified.
This is an example of a success, indicated by the "Connect to x.x.x.x:xxxx."
The following example is of a complete failure, indicated by the "Ncat: TIMEOUT" meaning the connection to the port timed out.
Your feedback has been received and will be reviewed.
Please, try again later.
Please try select less.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case
Your feedback has been received and will be reviewed.
Please, try again later.