Java Networking

The Java networking API provides Java classes for networking functionality, including addressing, classes for using URLs and URIs, socket classes for connecting to servers, networking security functionality, and more. It consists of these packages:

Networking System Properties

You can set the following networking system properties in one of three ways:

Using the -D option of the java command Using the System.setProperty(String, String) method Specifying them in the $JAVA_HOME/conf/net.properties file. Note that you can specify only proxy-related properties in this file. Unless specified otherwise, a property value is checked every time it's used.

https://docs.oracle.com/en/java/javase/17/core/java-networking.html#GUID-82A738CB-2A1C-4AC8-B9DA-C4543D398B51