Share via

How do i change my private ip address which is xx.xx.xx.4 on my ubuntu virtual private server

Brenda Gonzales 0 Reputation points
2026-03-09T07:33:06.4266667+00:00

I want to change my private ip address which is xx.xx.xx.4 on my ubuntu virtual private server , i'm trying to install virtualmin, so i need to change private ip address to my VPS IP

Removed PII

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. Ravi Varma Mudduluru 9,985 Reputation points Microsoft External Staff Moderator
    2026-03-10T03:39:15.4466667+00:00

    Hello @ Brenda Gonzales,

    Here are the steps you can follow in the portal to change the IP address.

    First, stop the VM, then navigate to the networking settings as shown in the screenshot below.

    User's image

    After opening the Network interface, go to IP configuration and select ADD. Next, create a static private IP and click ADD again, as demonstrated in the screenshot below.
    User's image

    User's image

    Once you add the new private IP, it will appear in the IP configuration tab. You can then select the new private IP and set it as primary.
    User's image

    If the previous step didn't set the new IP as primary, try clicking the old IP name and editing it directly. Select allocation as static, enter the new private IP address, and save. This will update it to the new private IP.

    User's image

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  2. TP 155.5K Reputation points Volunteer Moderator
    2026-03-09T08:03:59.77+00:00

    Hi Brenda,

    If you need to change it to a different private IP within the same subnet it is in now, for example, change it to 10.2.0.5, you can follow instructions below:

    1. Navigate to your VM in Azure portal, on left, click Networking -- Network settings

    2. On right, click on the Network interface/ IP configuration

    3. On IP Settings screen, bottom half, click on the IP configuration (typically named ipconfig1)

    4. On the flyout panel on right, change Allocation to Static, enter the new private IP in the box, click Save

    If you need to change it to different subnet/address space, that will involve some additional steps. Please let me know the address you would like to change to as well as the current address spaces and subnet you have in the Virtual Network.

    If something is unclear please add a comment below and I will assist.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.