1

In Windows 10 cmd line issuing

ping raspberrypi.local

to find the IP address of the Raspberry Pi returns a hex address like this:

fe80::103d:b922:5838:6142%9

How can I get the numerical IP address?

  • 3
    it is an IPv6 addr not an IPv4 addr, try: ping -4 -c 1 raspberrypi.local on Linux and Windows : ping -4 -n 1 raspberrypi.local – Ephemeral Dec 12 '19 at 16:48
  • Thanks @Ephemeral but issuing above command in win 10 I got: Access denied. Option -c requires administrative privileges. – laksys Dec 12 '19 at 16:54
  • Sorry, it's -n 1 for windows but you can also omit that.. keep only -4 – Ephemeral Dec 12 '19 at 17:00
  • great it is working. :) thanks. – laksys Dec 12 '19 at 17:02
  • You're welcome, have fun – Ephemeral Dec 12 '19 at 17:02
9

It is an IPv6 address, not an IPv4 address. Tell ping to search IPv4 only with the -4 option:

  • On Linux: ping -4 -c 1 raspberrypi.local
  • On Windows: ping -4 -n 1 raspberrypi.local

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.