How to find public IP address of a virtual machine?
Posted: 30. May 2020, 10:05
Hello,
I am locally hosting in my computer a blog using Debian 9 server in a virtual machine using virtual box in a Ubuntu 18 host. (Using bridged adapter)
I have also configured the machine with a static IP
Recently I have purchased an domain name from godaddy and I want to assign it to my blog. In order to do that, you need to provide the public domain name of your server, in my case the virtual machine that I have the blog in.
I am aware that there is the command but this displays the private IP address and the IPV6 address, in my case 192.168.1.27.
How can I see through the command line what is the public IP address of my virtual machine?
Any help greatly appreciated
I am locally hosting in my computer a blog using Debian 9 server in a virtual machine using virtual box in a Ubuntu 18 host. (Using bridged adapter)
I have also configured the machine with a static IP
Recently I have purchased an domain name from godaddy and I want to assign it to my blog. In order to do that, you need to provide the public domain name of your server, in my case the virtual machine that I have the blog in.
I am aware that there is the command
Code: Select all
ip aHow can I see through the command line what is the public IP address of my virtual machine?
Any help greatly appreciated