Setting up a static IP on the Raspbian Desktop (Pixel or Stretch), that doesn’t change, is really simple! But 1st, why do that?
I have been using a Pi Zero W (the one with on board wifi) setup headless with a USB sound card, to control the volume on a set of boosted external speakers I have connected to my TV.
When I want to adjust the volume level, I just use an ssh client or the VNC app from my phone, to access the Pi Zero W and move the volume slider up and down. And, It works ok.
Only problem with this setup, is when we have had a power outage, my router would assign a new IP address to the Pi. Then I would have to connect the Pi Zero to an HDMI port on the TV to find the new address.
I am sure there is probably a better way to get the address while running headless, like pinging it with Windows or something, but have not bothered to look it up yet (yes I tried using raspberrypi.local but I have more than one Pi running usually, and that doesn’t always work for some reason).
Products from Amazon.com
Price: $32.99Was: $49.99
BTW, this setup is only good if you don’t need to access to the internet with your pi. Because once you have assign the static IP, you will no longer have access the internet outside your home network, unless you have an extra wifi dongle attached.I have a usb hub attached to my Pi Zero W, so I have added an extra wifi dongle. I just have to put in my passkey, and now I have a static IP and a regular IP, to go online!
P.S. I have the comment section turned off at the moment! If you have any questions or comments about this or anything else on my site, please send me an email at email@example.com! Or visit my facebook page where you will find this article shared, and post your comments or questions there, or like my page and send me a message!