matthiasblaesing commented on issue #9751:
URL: https://github.com/apache/netbeans/issues/9751#issuecomment-7242760556
@draganbjedov thanks for reporting back! Could you please run this code on
your system and report back with the result?
Create a file `ProxySelector.java`:
```java
import java.net.ProxySelector;
import java.net.URI;
public class ProxySelectorCheck {
public static void main(String[] args) {
ProxySelector ps = ProxySelector.getDefault();
System.out.println(ps.select(URI.create("socket://github.com:22")));
System.out.println(ps.select(URI.create("https://github.com:443")));
}
}
```
and run it with `java -Djava.net.useSystemProxies=true
ProxySelectorCheck.java`. The idea here is to get an idea what type of proxies
are reported. You'll get output like this:
```
matthias@enterprise:~/tmp/java$ java -Djava.net.useSystemProxies=true
ProxySelectorCheck.java
[SOCKS @ localhost/<unresolved>:12345]
[HTTP @ localhost/<unresolved>:8080]
matthias@enterprise:~/tmp/java$
```
You can mask the host name, but please don't mask the ports or proxy types.
My gut feeling is, that having a http proxy in a corporate setup is more
common, than having a socks proxy.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists