0

I am going to sound like an idiot but if I run ifconfig in my terminal to try and find my IP it just gives me 10.0.0.2 which is my internal IP not my external IP. How can I get my external IP as I am trying to setup a RTMP server.

4
  • What do you mean by external IP? Do you mean the IP of your router that connects to your ISP? If so use whatismyip.com. Mar 24 '17 at 19:49
  • I have used that and got my IP but if I try to access the Nginx page using that address it doesnt work, if I use my internal address (10.0.0.20) and try to access the page it does work Mar 24 '17 at 19:52
  • First you are inside the LAN so you need to use the internal IP. Second if you want to connect from outside your LAN (home) you will need to forward the port to your Raspberry Pi. Mar 24 '17 at 20:25
  • Yep I was being an idiot, thanks for the help ahaha Mar 24 '17 at 20:26
0

Run: curl icanhazip.com

It will directly give you your external IP address, as seen by icanhazip's servers.

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.