Java learning series: add parameters for program operation to force the access IP format to be converted to IPv4 format

Scenes

When starting the Proxifierexternal network to access the company's internal network resources, after the program is started, a connection error is reported. This blog post is mainly aimed at solving this situation.

surroundings

software version
JDK 1.8

text

Add the following statement in the startup script:

 -Djava.net.preferIPv4Stack=true

to sum up

Life-long learning!

Ask for praise

If my article is helpful to everyone, you can click like or favorite at the bottom of the article;
if there is a good discussion, you can leave a message;
if you want to continue to view my future articles, you can click Follow
You can scan the following QR code to follow me 'S public account: Fengye Zhixuege, check out my latest share!
Insert picture description here
Bye bye

Guess you like

Origin blog.csdn.net/u013084266/article/details/112654366