Any guides on what exactly I can try to retain my ip?

@Middleware & OS
Hey guys, am trying to retain and Configure a static IP address on Embedded Linux (Raspberry pi, Raspbian Os) am running a local server and would like retain same IP for port forwarding. Any guides on what exactly I can try to retain my ip? I tried configuring my router but it doesn't seem to work
Solution
To retain a static IP address on a Raspberry Pi running Raspbian OS:

  1. Edit /etc/dhcpcd.conf and add your static IP details.
  2. Restart the dhcpcd service.
  3. Edit /etc/network/interfaces and set the IP address to static.
  4. Reboot your Raspberry Pi.
This should keep your IP address static, allowing for port forwarding.
Was this page helpful?