IP address

gwb21471

New Member
Joined
Mar 22, 2022
Messages
19
Reaction score
4
Credits
161
I am running Ubuntu server. How do I set the IP address so it uses the same on on each restart. Right now if I restart it or shut it down I may not get the same IP address. Other then that I got everything working on it. I use FileZilla to access it. Because windows 11 or 10 can never find it. But I got it to use the same IP address. Thanks for the help.
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,596
Reaction score
3,301
Credits
33,320

SlowCoder

Gold Member
Gold Supporter
Joined
May 2, 2022
Messages
257
Reaction score
191
Credits
2,100
What network does your Ubuntu server call home? Is it on your local home network? Or are you running it in the cloud?

If running from home, and if you have access to your router's DHCP protocol/server, you can set DHCP to always assign a specific IP to your Ubuntu host's NIC. That should be it.

If you statically assign an IP directly in your Ubuntu host, and don't manage your DHCP server, you risk an IP collision, where the IP gets dynamically assigned to another device, and they interfere.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top