finalshell提示java.net.ConnectException: Connection timed out: connect

Why timeout?

The thing is like this, in order not to bow to the school, I didn’t open the campus network, bought a traffic card, so every time I turned on the hotspot for the computer, my friend asked me to eat, I just left, and came back after finishing the meal, in the finalshell It prompts java.net .ConnectException: Connection timed out: connect, I checked whether the virtual machine is on, whether my Linux is on, they are all on! ! !

Why can't I connect to the virtual machine?

At first glance, the IP address of the virtual machine has changed. The ssh connection is re-established, and it's done.

Why does the IP address of Linux change?

6aacf967-a650-4bc0-9d8b-a3cd0d09d236

I didn't delve into why, I just got started, and I just came into contact with Linux this afternoon.

What is DHCP and what is network configuration change?

I directly clicked three times, and now I seem to understand a little bit, and I don’t know if it’s right;

The IP configuration of the virtual machine seems to be configured by the network configurator. A DHCP server is provided in the network configurator. The IP can be assigned by DHCP. Once the DHCP lease expires, the IP will change. . .

This seems to be a reason for the IP change, so when you encounter a connection timeout, go and see if the IP of your Linux server has changed.

Guess you like

Origin blog.csdn.net/qq_61894582/article/details/129596448