AnsweredAssumed Answered

PI WEB API Call erred out : Only one usage of each socket address (protocol/network address/port) is normally permitted  XX.XX.XX.XX:443

Question asked by ChewCheeLim on Jan 18, 2018
Latest reply on Jan 20, 2018 by ChewCheeLim

I received this error message from PI WEB API call when I am trying to retrieve historical data with many tight calls in a loop.

 

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted xxxxxxxxx 443 

 

 

Did some googling.. it says that "exhausting the ~ x number of ports available limit". and there are options to fix this by monkey around with registry settings.  (see below url)

We are not comfortable in changing the registry settings.. and tot to ask if anyone'd encountered this issue ? Any ideas on how to fix it? Any advice is much appreciated.

https://blogs.msdn.microsoft.com/dgorti/2005/09/18/only-one-usage-of-each-socket-address-protocolnetwork-addressport-is-…

 

thanks!

Outcomes