There Was a Problem Connecting to the Pc. Please Try Again Logmein

In a previous post, we saw how to set WiFi on the Raspberry Pi and how to wirelessly connect to it via an SSH customer chosen PuTTY. PuTTY is a great way to admission the command line, simply y'all can't use it to access the desktop. In this tutorial, I'll show you how to access your Raspberry Pi's desktop or control line from anywhere in the world. Later setting up a remote desktop connection, you lot'll be able to admission your Pi from you iPhone, iPad, or laptop from anywhere with an internet connection.

PCBWay Ad

Nosotros'll do this by start setting up a remote desktop awarding on the calculator you want to access the Pi from. Then, we'll gear up a port forrad on the router the Pi is connected to, so it can be accessed from other computers outside of your home network. Y'all'll need to have access to the Pi'due south control prompt, and also know the local IP accost of the Pi. See this tutorial if you lot demand help with that.

Update! Raspbian Jessie operating systems released after 9-23-16 now come with the Pixel desktop. Pixel uses a different remote desktop service than earlier Raspbian desktop versions, so I've created divide sections for setting up both…

BONUS: I made a quick start guide for this tutorial that y'all can download and get dorsum to later if you can't set this up right now. It covers all of the steps and data you demand to get started.

Setup for Raspbian Pixel Desktop

Use this section if your Raspbian Bone was released after 9-23-sixteen…

RealVNC server is included in Raspbian Jessie releases after 9-23-16. All we need to practice on the Pi is enable VNC in the raspi-config menu. Enter sudo raspi-config at the command prompt to access information technology.

Then select "Interfacing Options" from the menu:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - Interfacing Options

Then select "VNC", to enable VNC:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - Enable VNC

Now reboot the Pi with sudo reboot .

Adjacent we need to install RealVNC Viewer on the computer you want to access the Pi from. Download RealVNC Viewer here and open the .exe file. It's a portable awarding, so you don't demand to install it:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - RealVNC Viewer

If you know the IP address of your Pi, enter it into the address bar at the tiptop of the window. If you lot don't know it, yous can find it with Advanced IP Scanner.

JLPCB Ad

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - Enter Pi's IP Address

Now printing Enter and you'll be prompted for the Pi's username and password:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - Enter Pi's Username and Password

If this is the commencement fourth dimension connecting to the Pi with RealVNC, yous'll get a security warning. Just press Continue to get past it:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - VNCViewer Identity Check

The Raspbian Desktop will open up in a VNC Viewer window:

How to Access the Raspberry Pi Desktop with a Remote Desktop Connection - Raspbian Desktop

Setup for Older Raspbian Desktops

Use this section if your Raspbian OS was released before 9-23-16…

Older versions of Raspbian don't include RealVNC, only nosotros tin can install a similar service called XRDP that works well besides. Log into your Raspberry Pi with PuTTY, and enter sudo apt-get install xrdp  to install the XRDP service:

after xrdp install

That's all you need to exercise on the Raspberry Pi side.

Now, on your Windows computer, open the Remote Desktop Connection application. This is a Windows app, and then it should already be on your reckoner. Now enter the local IP address of your Raspberry Pi:

Remote Desktop Connection

Click connect, and you'll be prompted to enter the Pi'southward username and password:

xrdp login

If you haven't inverse information technology notwithstanding, the username is pi and the password is raspberry .

Click "Ok" and you'll be logged into the Rasbian desktop:

Remote Desktop Desktop

Configure for Admission Outside Your Home Network

The remote desktop connections higher up are great and work well as long every bit you only connect to the Raspberry Pi from your home network. Yet, it won't work outside your home network. To connect to your Pi from other computers outside of your dwelling house network, yous demand to forward a port in your router's configuration settings. This volition tell your router to send the connection to the Pi's local IP address whenever you connect to a port from outside of your home network.

To do this, enter your router's configuration carte by inbound the default gateway IP address into the search bar of your internet browser, in my case it'south x.0.0.i.

If you don't know what your default gateway IP accost is, yous tin can find it by opening upwardly the command prompt in Windows, and entering ipconfig :

ipconfig at command prompt

Then login to your router's configuration page. If you don't know the username and password, endeavor admin  for the username and password for the password:

router configuration menu

Once you're inside your router'due south configuration menu, await for a setting that says "Port Forwarding". Information technology may exist under advanced settings:

port forwarding

In my case, I click "Add Service" to add together a new port forrad. Your case may be different depending upon which blazon of router you have. Consult your user manual or search online for instructions pertaining to your specific router model. Once you've figured out how to add a new port frontwards, enter the details of the connexion:

port forwarding configuration

The "Service Type" should be TCP/UDP. Where it says "Server IPv4 Address", enter the local IP address of your Raspberry Pi (in my case it's 10.0.0.106). Now enter which ports demand to exist forwarded. For the Windows Remote Desktop App, nosotros need to forward port 3389. Enter 3389 as both the "Beginning Port" and the "Finish Port". Click salve to save the connection.

Now we need to notice your router's public IP address. But Google "what'due south my IP" and you lot can find sites that will tell you for free:

whats my ip

Write this down, and then open up the Remote Desktop Connection application in Windows. In the "Estimator" field, enter your router's public IP address, followed by a colon and the port forwarded in the above steps. For example, if your public IP is 50.122.122.22, and you forwarded port 3389, you lot would enter 50.122.122.22:3389 here:

remote desktop port forwarded

Using this address you'll be able to connect to your Raspberry Pi from anywhere outside of your dwelling house network.

Remote Desktop from iOS Devices

The Windows Remote Desktop App is perfect if you want to access the Pi from a Windows automobile, but if you utilise an iOS device, you can install the Microsoft Remote Desktop App, "RD Client" and admission the Raspbian desktop from your iPhone, iPad, or Mac. The ready up is easy:

Add a new connection:

photo 1

Select "Add PC or Server":

photo 2

Select "PC Proper name":

photo 3

Enter your home router's public IP address and the port yous forwarded:

photo 4

Then make another connection with the local IP accost of your Pi:

photo 5

Tap "Done" and select the connexion you lot want to use:

photo

You'll probably want to create two connections. A connection with the Pi'southward local IP address can be used when yous're on your home network. Some other connection with your router's public IP accost and forwarded port can exist used when you're away from home.

Hither'due south a video showing you lot how to set up everything in the mail service above:

That should about embrace it, simply if you're having trouble setting anything up, but get out a annotate below and I'll see if I can help. And don't forget to subscribe if you'd similar to see more tutorials like this one!

mancillaabot1975.blogspot.com

Source: https://www.circuitbasics.com/access-raspberry-pi-desktop-remote-connection/

0 Response to "There Was a Problem Connecting to the Pc. Please Try Again Logmein"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel