I am currently working on a local proxyserver in Java, now to prevent any work for the user I want to set the system-wide proxy settings to the local proxy server using my code.
I tried using;
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "10001");
System.setProperty("proxySet", "true");
But if I am correct these are just the settings for the JVM?
How can I achieve setting a system-wide proxy?