yoga
Posts: 3
Joined: Fri Dec 23, 2016 8:29 pm

How to find IP address of RPi when connected using ethernet

Fri Dec 30, 2016 3:10 am

Hi,

I got new Raspberry Pi 3 couple of days back and I trying for headless connection to RPi. My RPi came with 16GB memory card with pre-installed NOOBS.

To connect to laptop's screen and monitor, I followed several youtube video tutorials, however, I am stuck at a step while trying to find out the IP address of RPi.

Below are the steps I have followed:
1) I connect my RPi and Laptop using simple ethernet RJ45 cable also plug in 5V power supply to RPi.
2) My laptop is connected to wifi for internet and I have shared the wifi internet thru wifi properties --> Share option to make internet available for RPi.
3) Now, I logon to my router to find out the IP address of RPi (as I think thru ethernet connection the IP address should get assigned to RPi which I can use in PUTTY)

After reading thru various blogs, I understood to get SSH enabled. So, I have enabled the SSH server connection, still I am unable to find the IP address of RPi.

Is there anything I could be missing?

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to find IP address of RPi when connected using ether

Fri Dec 30, 2016 8:49 am

SSH needs to be enabled on Raspberry Pi, presume you are running latest Raspbian Jessie, NoobS is an installer/chooser:

https://www.raspberrypi.org/blog/a-secu ... bian-pixel


The IP address is not found in your Router as you Raspberry Pi is not connected to Router, unless misunderstood. Also be careful many tutorials are out of date:

https://pihw.wordpress.com/guides/direc ... connection
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

jahboater
Posts: 5825
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: How to find IP address of RPi when connected using ether

Fri Dec 30, 2016 9:04 am

The Pi3 has built-in WiFi (and ethernet) so you can, and most people do, connect it directly to the router, instead of via the laptop which is more complex to set up.

If you can use a cable it will "just work" and be very fast, otherwise you need to set up the Wifi details in a file called wpa_supplicant.conf (in the same place you put the ssh file). Or see this https://www.raspberrypi.org/documentati ... /wireless/

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: How to find IP address of RPi when connected using ether

Fri Dec 30, 2016 9:54 am

You don't say if you have a monitor and keyboard on the Pi.
If you do then you can find the IP address from the command line interface with "ifconfig"

For running a Pi headless I suggest:
1. Download Raspbian rather than NOOBS (In the post christmas rush, I've found the torrent download the best)
2. Write it to the SD card with Win32DiskImager
3 Still on your PC, put an empty file "ssh" on the card to enable SSH. ssh.txt might work too.
4 Still on your PC, put a file "wpa_supplicant.conf" on the card containing

Code: Select all

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Your SSID Here"
    psk="YourWifiKeyHere"
}
5. Put the card in the Pi and boot it up. Now it will hopefully connect to your Wifi.
6. Find the IP address from your router setup pages, with Advanced IP Scanner on your PC or Fing on android
7. Connect by ssh with Putty
8. Change pi's password.

Return to “Beginners”