A connection with the server could not be established
When attempting to upload images web server the upload fails and you receive the error message.
The problem may occur when a connection with the server is not available.
- Check if the HTTP port you set in your code coincides with the port number you set on your web server. You can use the HTTPPort property to set the port number.
- Make sure the address of the server is available. To check this, you can ping the address from a client machine.
Note: Both the machine name and the IP address of the server can be used for the HTTPUpload method.
In this article: