hawkeye6703
Posts: 2
Joined: Mon Sep 23, 2019 9:47 pm

no global ipv4 address on my raspberry pi 4

Sun May 24, 2020 1:43 am

I can't find my public ipv4 address on my raspberry pi 4

Kendek
Posts: 180
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: no global ipv4 address on my raspberry pi 4

Sun May 24, 2020 8:10 am

Code: Select all

wget -qO- v4.ifconfig.co
or

Code: Select all

curl v4.ifconfig.co

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: no global ipv4 address on my raspberry pi 4

Sun May 24, 2020 12:22 pm

hawkeye6703 wrote:
Sun May 24, 2020 1:43 am
I can't find my public ipv4 address on my raspberry pi 4
Your Pi doesn't have a public/global IP address (v4 or v6). Your router does. If you need access to your Pi from the global internet you'll need to setup port forwarding on it. There's a whole bunch of security issues to consider first though.

If you mean you can't find the IP v4 address the Pi is using on your private network, you have a number of options:
  • Plug in a monitor and keyboard, Run

    Code: Select all

    ifconfig -a
  • Check your router's admin pages. It should have a list of connected clients.
  • Use a network scanner
  • From another machine try

    Code: Select all

    ping raspberrypi.local
    The output shouldcontain the IP address. Replace "raspberrypi" with the hostname of the pi in question if you've changed it.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

Return to “Troubleshooting”