I can’t connect to the remote server, but it works when the violinist works with the metro application

I have a strange problem, I try to get an XML string from a network computer, and it works when I'm not on my network, but when I'm 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'm using is:

 Uri URL = new Uri(SabURL + QueueStatusURL + API); string myURL = URL.AbsolutePath; var xmlResults = XDocument.Load(URL.OriginalString.ToString()); 

The weird part is that when I start Fiddler4, it works fine, what does Fiddler do, what makes it start working? This is some kind of problem with the proxy server, and if so, how would I handle this?

+4
source share
2 answers

Try adding the features of private networks, it worked for me

enter image description here

+9
source

This is a behavior issue in IE. if the request is not resolved, it will not display a response and will not go to the page. Chrome, on the other hand, does not care about whether the request resolves, but displays a URL, however, with a message that the server was not found or similar.

What the violinist does is act as a proxy server when it is turned on. Therefore, when you run the script, it tries to resolve the request, and then passes the html page to IE, even if an error occurs. therefore IE always shows something when the script is running, because IE is not trying to process the requests themselves.

Unfortunately, it is not known how to change this.

+2
source

Source: https://habr.com/ru/post/1432876/


All Articles