How does the server access the public network?

in WCF service, a third-party SMS platform interface is requested to send SMS messages through HttpWebRequest, and the SMS platform interface must be accessed through the public network. However, at present, the server cannot access the public network and can only be accessed by setting an IE proxy. How can we make the http requests created in the WCF service also access the public network through the proxy? The server is windows server 2008 R2.

Mar.22,2021
Set http proxy in

program


IE and WCF both belong to Microsoft, so they share the same proxy. After configuring the proxy in IE, it is amazing to find that WCF will automatically use this proxy.
I know it's incredible, but I've really come across this situation at work.

Menu