I have a strange issue, I am trying to retrieve a XML string from a network computer and it works when I am outside of my own network but when I am on the same network I get exceptions such as:
+ $exception {"Unable to connect to the remote server"} System.Exception {System.Net.WebException}
An attempt was made to access a socket in a way forbidden by its access permissions 192.168.2.214:8080
the code I am using is:
Uri URL = new Uri(SabURL + QueueStatusURL + API);
string myURL = URL.AbsolutePath;
var xmlResults = XDocument.Load(URL.OriginalString.ToString());
The strange part is that when I run Fiddler4 it works just fine, what does Fiddler do that makes it start working? Is this some sort of proxy issue and if so how would I handle it?
Try adding the capability of Private Networks, it worked for me