Robert Rodriguez Robert Rodriguez - 18 days ago 8
HTTP Question

In C# what does it mean to get a System.Exception: IP Out Of Range?

When attempting to use

HttpClient
to post async I received an aggregate system exception that included the error
System.Exception: IP Out Of Range
. I am able to make the same call from a different machine without issue, what would cause this?

Note that the IP address is being resolved through the DNS, a url is provided to the function.

Answer

If you are receiving this error from only one machine you should check with your endpoint's host to see if you're being blocked. Having your IP address blacklisted would cause this error.

Comments