electroSome

Access Raspberry Pi directly from Windows PC

Raspberry Pi SSH

Raspberry Pi SSH

Usually beginners require a display, keyboard and mouse for using Raspberry Pi. But being a linux based system, the Pi can be accessed through a variety of methods like SSH (check our Raspberry Pi SSH tutorial), VNC (check our Raspberry Pi VNC tutorial) etc.. But these methods require an already existing network consisting of a router or other network devices.

It would be easier to directly connect the Pi to the computer and work with it without any additional hardwares like router. But unfortunately it is not possible by default as both devices don’t have ip address and network parameters configured, they cannot communicate with each other. Either these need to be set manually or automatically assigned. Setting manually may lead to ip address conflicts and configuration errors therefore automatic assignment is preferred. For this we install a DHCP (Dynamic Host Configuration Protocol) server on the computer.

DHCP enables the clients to dynamically request ip addresses and parameters from the server. These are assigned automatically without manual intervention of a network administrator. Windows bundles a DHCP server which can be used for internet sharing but unfortunately its difficult to find the ip address it assigns. Therefore we are going to use a third party DHCP server.

Next step is to assign a static IP address for windows LAN.

Windows IP address setting
WIndows DHCP server setup
WIndows DHCP server setup – selecting network
WIndows DHCP server setup – protocols
WIndows DHCP server setup – configuring DHCP
WIndows DHCP server setup – writing INI file
WIndows DHCP server setup – enabling admin priv
WIndows DHCP server setup – configuring firewall
WIndows DHCP server setup – run server
WIndows DHCP server setup – tray app
WIndows DHCP server setup – DHCP IP address

This IP address can be used to access the Pi through SSH (check our Raspberry Pi SSH tutorial), VNC (check our Raspberry Pi VNC tutorial), share your internet with Pi etc..

Viola! Now you can use your Pi without the need of any additional hardware.

Any doubts or suggestions? Comment below.