Could not connect to ' 127.0.0.1 ' (port): Connection failed.

Source: Internet
Author: User
Tags change settings

I first try Linux connection extranet, use XSHELL5 this software

Give me a very wonderful question about the Xshell connection to the CentOS system in the virtual machine, and the error in connection is as follows:




Because I am the first time to configure:

First I enter in Linux: Ifconfig, the results are as follows:



Then I type the ssh 127.0.0.1 directly under the Xshell and there is the top error.

Why say wonderful, I Baidu for a long time on the internet, some blog said to be a firewall problem, some say is to apply for address to release the address of the problem, but I tried it is not useful, or can not be used.

Look at Baidu, I found a lot of people have this problem, and then I will Baidu virtual machine network How to edit, the bright spot came ...

Under the LIUNX system click the "Virtual Network editor" under the "Edit" menu, which opens a window where we click "Change settings" and "Restore Defaults".



Then we type: Ifconfig, find the address is not the original 127.0.0.1, in order to ensure that this address can be used, we entered the Windows command line ping +ip address

Pop-up a command window to display the following image effect, this diagram flash very fast, so only part of the cut.



So we can use the grid address successfully connected to the network. In the end, it turns out that the problem is simple and the solution is simpler.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.