Friday, October 3, 2014

How to Connect Raspberry pi to laptop/pc with LAN Cable

How to Connect Raspberry pi to laptop/pc


Today I am going to show you how to connect Raspberry pi to your Laptop/pc with LAN Cable.

By this method you will get the raspberry pi window on the window of your laptop/pc.


You will need 3 Softwares for connecting Raspberry pi to laptop/pc. They are:


2) Putty

3) Xming

Uses of the 3 Softwares:

DHCP : Used to assign an ip address to Raspberry pi.

PUTTY: Used to connect to raspberry pi and also connect Putty with Xming.

Xming : Used to bring the raspberry pi screen on the laptop/pc.

NOTE: SSH should be enabled on your installed OS on raspberry pi.

Now Just follow the simple steps below:

Step 1 : Firstly Install Xming

Step 2 : Double click on Xlaunch so that it is minized to tray

Step 3 : Now you need to go to your laptop/pc 's Network and Sharing Settings--> Change adapter settings

Step 4 : Right click on Local Area Connection or Ethernet

Step 5 : Double click on iPv4-->Use following ip address .

Step 6 : Assign 192.168.2.1  . Subnet mask comes on its own. Now press OK

Step 7 : Now open DHCP server(dhcpwiz) and follow my steps


How to Connect Raspberry pi to laptop/pc


How to Connect Raspberry pi to laptop/pc


Step 8 : Firstly you have to start the service and enable the firewall. Press finish and then select Continue to system app tray.

Also watch the Video Tutorial Below:-






How to Connect Raspberry pi to laptop/pc


Step 9 :  Now Open Putty and follow my steps


How to Connect Raspberry pi to laptop/pc


How to Connect Raspberry pi to laptop/pc


Step 10 : For the first time it will take time for the ip to be get assigned to Raspberry pi. So Wait.(around 1-2 minutes) .You will get a notification when assigned


How to Connect Raspberry pi to laptop/pc


Step 11 : A command console will now open. Enter the following detail.

Step 12 :  login id: pi        password: raspberry

Step 13 : Check ip by typing ifconfig

Step 14 : Now type lxsession


How to Connect Raspberry pi to laptop/pc



Voila !!!! That's it. You are Done. Enjoy.

Sharing is Caring.

Comment if you are having any Problem.

18 comments:

  1. hey, I have done everything same but when i click open in putty, i get an error message ' connection refused'. please help me out.

    ReplyDelete
    Replies
    1. Try a Different IP address. It takes a few minute to get the IP assigned for the first time.

      Delete
  2. hello, i have done everything same but when i click open DHCP i get 0.0.0.0 in ip adress .Please help me what can i do???

    ReplyDelete
    Replies
    1. You might have not configured LAN connection properly.

      Delete
  3. Hi, pls i have followed your steps and i keep getting connection error. either 'connection refused' or 'connection timed out'.....i have tried using different ip addresses, and when i do, i don't know what i am supposed to do in the ip-pool for the DHCP. Please i need urgent help.

    ReplyDelete
  4. Even after i have sone exactly the same the server is not starting can u help me out.

    ReplyDelete
    Replies
    1. Which OS are you using. I used Noobs. Check LAN connection properly.

      Delete
  5. Many thanks for sharing, Please which connection do I connect to first before configuring the local IP address. As my internet connection is not giving me access to fully configure the local IP and DHP return 0.0.0.0

    ReplyDelete
  6. Is there any way to allow access to the internet through this connection type? I have it setup, I can login via Putty but can;t access the internet via the Raspberry Pi. I used exactly the same settings as your instructions.

    ReplyDelete
  7. After logging in how do i access internet through raspberry pi?

    ReplyDelete
    Replies
    1. Use wifi dongle or hub,router to create connection.

      Delete
  8. hi this is nice tutorial,

    but i have problem,xming has stopped working after type lxsession in putty ..

    help for this problem please .


    thank you verry much

    ReplyDelete
  9. Hi , Thanks for this article. Do I need to connect HDMI CABLE from Pi board to laptop for this ? Please respond.

    ReplyDelete
  10. When I try start service communicate says "Service could not be started" "he couldnt find file 0x2". Please help

    ReplyDelete
  11. Windows could not start the DHCP Client service on local computer. Error 2: The system cannot find the file specified Please help

    ReplyDelete
  12. To connect to the Pi 3 with your Windows PC laptop w/o internet, all you need is the Ethernet cable (rj45) plugged from your laptop to the Pi. Start up the Pi and wait a few minutes to finish booting (the green light stops flashing) and then wait a couple minutes for it to add the Pi on the Ethernet port. Then open the command prompt on your PC and type, ping raspberrypi and hit enter...It should show the Ethernet IP of the Pi. Then you can ssh or VNC into it with that address.

    ReplyDelete