ion2014
Posts: 2
Joined: Thu Jun 14, 2018 11:49 am

no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 12:08 pm

I am using a raspberry pi zero and tried to connect my win10 computer via the usb, I did the same process as the former tutorial by adding
dtoverlay=dwc2
at the bottom of the config.txt and this is my cmdline.txt

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=c546269c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether
and created a folder named ssh on the root directory of the sdcard.
I also installed the rndis driver and bonjour print service accordingly.
After i plugged the cable in the usb port, the windows successfully recognized the pi as RNDIS Ethernet gadget, however, at the networking panel, the windows said that this network is unidentified, and although it sent couple of packages, it received nothing from the pi.
ssh pi@raspberrypi.local yields the following error:

Code: Select all

Unable to resolve host 'raspberrypi.local': Connection failed.
I thought that maybe the bonjour is not working and manually tried all ip address in the network.
for example, the network ip for my computer is 169.254.168.33, I scanned from 169.254.168.0 to 169.254.168.255, and none of the ip is responding.
Did I done sth wrong? or is my zero pi broken?

FYI: I managed to connect via the usb cable few month ago and connected it to a wifi, i am able to connect to the pi via the wifi address, but i re-imaged the pi when not being able to connect via the usb, does this suggest that the pi is working?

any help is appreciated, i am desperate of wasting half of my day just trying to connect to it.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 12:23 pm

Normally, 169.254.x.x networks have a netmask of 255.255.0.0. That means the IP could be anywhere from 169.254.0.1 to 169.254.255.254

Connecting a monitor/keyboard to it might help with the troubleshooting.

ion2014
Posts: 2
Joined: Thu Jun 14, 2018 11:49 am

Re: no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 1:03 pm

SurferTim wrote:
Thu Jun 14, 2018 12:23 pm
Normally, 169.254.x.x networks have a netmask of 255.255.0.0. That means the IP could be anywhere from 169.254.0.1 to 169.254.255.254

Connecting a monitor/keyboard to it might help with the troubleshooting.
yeah i ordered a dongle online and are waiting for the delivery, and i wonder if it is possible that only the ethernet adaptor is broken and the wifi adaptor is good? also i am scanning with a wider range of ip to see if the bonjour is not working, thanks for your help:p

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 1:09 pm

i wonder if it is possible that only the ethernet adaptor is broken
I thought this was an RPiZero, which does not have a built-in Ethernet interface?

You have not previously mentioned using an Ethernet adapter.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 1:10 pm

ion2014 wrote: yeah i ordered a dongle online and are waiting for the delivery, and i wonder if it is possible that only the ethernet adaptor is broken and the wifi adaptor is good? also i am scanning with a wider range of ip to see if the bonjour is not working, thanks for your help:p
Could be. Could also be the (USB?) ethernet adapter isn't getting a default IP/subnet. Did you set an IP/subnet? I haven't tried it, but maybe you can set a static IP by editing the SD card files on your Windoze box. I'm a Linux guy (Ubuntu), and have used this with setting wifi network settings.
/etc/dhcpcd.conf.

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: no ip address can be found on raspberrypi zero

Thu Jun 14, 2018 1:54 pm

I thought that maybe the bonjour is not working
If you are using Win10 - then it has stopped responding (most of the time) to using names to talk to Pi since the last Win update

https://github.com/Microsoft/WSL/issues/384

as an example but many more issues reported since the spring update :(

Disabling IPv6 on Win machine "sometimes" seems to improve it but not all the time

Return to “Troubleshooting”