I need help changing my IP to dynamic or confirming that my is IP to dynamic because I may have set it to static when I installed PiVPN.

/etc/network/interfaces is basically empty

  • 1
    Your looking for /etc/dhcpd.conf not the interfaces file. This is a very good explanation. Nov 3, 2017 at 14:00
  • This helped, thanks, I just removed a line that made my IP static. Nov 6, 2017 at 9:46

2 Answers 2

$ sudo raspi-config 
  • Select 'Network Options'
  • Select 'WiFi'
  • Enter SSID
  • Enter SSID passphrase
  • That will connect you to a wireless network but not change the IP if it already has been statically assigned. Of the static address is not in the same range this would fail. Sep 20, 2018 at 7:19

This command is to confirm you real IP address. If the IP changed in period of time, normally, it is regarded as not static IP.

curl -s http://ipv4.icanhazip.com

You mention you use a VPN service. If the VPN successfully run up, you are able to use the above command to check the IP address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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