How to attach public static IP to VM ?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

How to attach public static IP to VM ?

Post by satimis »

Hi all,

I'm prepared installing a Linux server on VM. I'm now searching a solution to attach the static IP to the VM so that the server can be browsed on Internet.

Say for example;
Public static IP of PC - 111.222.333.444
Internal IP of VM allotted by router - 192.168.555.666

Can any folk shed me some light?

Thanks in advance.

Regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: How to attach public static IP to VM ?

Post by scottgus1 »

If the VM is connected through Virtualbox Bridged, then it sits on the LAN just like any other computer on the LAN, and looks to the router like one of all of the computers on the LAN. There would not be anything special to do in Virtualbox.

Pretend your VM is a separate physical computer. Figure out the procedure to assign a static public IP address to a physical PC on your LAN behind your router, then do the same process to the OS inside the VM.
Post Reply