Question
Incessant Technologies
IN
Last activity: 4 Jun 2024 7:02 EDT
How to bypass proxy for specific domain
Hi, we need to bypass the proxy for particular domain with port number. we tried configuring different options in JVM but no luck. Please find the format of URL which we are trying to connect.
URL :- https://abc-def-ghi-jkl.us.google:8443/asp/net/action=test
Note :- we tried giving JVM arguments as mentioned below but still its passing through proxy only.
-Dhttp.nonProxyHosts=*.google
-Dhttp.nonProxyHosts=*.google:8443
-Dhttp.nonProxyHosts=abc-def*
Other url's which doesn't have port number are working fine by using above settings.
Can someone please help if i need to pass arguments in different method.
@satishkumarreddym To bypass the proxy for a specific domain with a port number, you can use the Java http.nonProxyHosts setting. However, the http.nonProxyHosts setting does not support port numbers. It only supports wildcard entries for domain names. For example, -Dhttp.nonProxyHosts=*.google will bypass the proxy for all subdomains of google. If you need to bypass the proxy for a specific port, you may need to configure this at the proxy server level.
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
🌕 Java parameter configuration issue.
🌕 Can't set proxy for an connect in 8.5
🌕 Multiple proxy support
🌕 Caught unhandled exception: java.lang.RuntimeException: org.apache.http.conn.HttpHostConnectException
🌕 Service SOAP - HTTPS ConnectionTimeout