Virtualbox: Is it possible to get a different public-ip on the guest system from host's public-ip?
Solution 1
If you set the virtual network card connection to be "Bridged" rather than "NAT" then you can set the IP address in the virtual machine to the same format as the host machine.
Examples (assuming you do the above):
End result is that any machine on the network would be able to connect to the virtual machine via its own IP address and you wouldn't need to configure anything to map across to it
Hope this helps
Dave
Solution 2
This is not possible, in a home environment, no matter the operating-system or virtualization.
The issue is: both (or all machines) on this home-network are leaving through the router to access the internet. The router is the one machine, that actually has the public ip, everything else is available through translated addresses (NAT).
There would be at least two ways to achieve the wanted situation:
Use a VPN on one of the machines, so it "leaves" the internal network at another place.
Get a second internet-line, and assign the router of this line as the gateway for the other machine.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
i'd like to set my guest's public-ip (windows xp) undependent from the host's ip as a different one. Is it possible? If so, how do i do it?
Please note that, it's about the public id, not the local ones..
Thank you very much..
-
Admin over 12 yearsHi, but i want to change my public -ip not the local one. I still got the same public ip adress after that changes...
-
Admin over 12 yearsOnce you configure the virtual network card as "bridged", you can think of it as another physical machine on your network. Therefore, whatever you did to expose the public IP address of the host machine would need to be done for the virtual machine also I would imagine.
-
vgoff over 11 yearsI don't think downloading the proxy and using it would change their web-facing IP though.
-
Admin almost 2 yearsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.