VNC Remote Connection Raspberry Pi Error Problem Resolution-"Unable to connect because the target computer is actively rejecting"

Source: Internet
Author: User
Tags port number
Problem: "Unable to connect because the target computer is actively rejecting"

The first time to make Raspberry Pi, because the Raspberry Pi can not directly connect the monitor, so use remote connection, here, I use a network cable to connect the way, notebook and Raspberry Pi with a cable connection, specific reference:

Http://shumeipai.nxez.com/2013/10/15/raspberry-pi-and-a-network-cable-directly-connected-laptop.html


After that, you need a remote to the Raspberry Pi GUI: specific reference:

Http://www.cnblogs.com/pihome/p/4595524.html


After I do this, the following error has occurred:
Connect:connection refused

If you use TightVNC,

The error should be

"Unable to connect because the target computer is actively rejecting"


Cause of the problem:

The server is only set up on the PC side, but there is no port on the Raspberry Pi.

Workaround:

To connect the Raspberry Pi with putty, enter the command:


Vncserver-geometry 1422x800

The last number is the screen resolution, I set this value mainly to keep him from full screen.

As follows:



: 2 is the port number to add after the IP, generally the first setting defaults to 1.

And then it's OK,







Related Article

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.