What's the command in terminal to see the login IP and port info for Virtualmin on Ubuntu 20.04?

I just downloaded virtualmin and webmin, but I cant seem to find the login url.

You downloaded, but didn’t install it…? Because it’s presented at the end of the installation.
Oh, and running Virtualmin’s install script also installs Webmin.

Btw, start with the docs.
https://www.virtualmin.com/documentation/installation/automated/

As per documentation as in above link - which you definitely need to read.

https://yourdomain.com:10000 or https://192.168.1.1:10000

Thanks! I appreciate the help!

I don’t know how we can make it more clear.

The installer tells you to login to port 10000 on the name of the system and the download page has the following paragraph:

“After a few minutes, your system should have everything it needs to provide a full-featured virtual web hosting environment! Now login to Virtualmin by browsing to port 10000 on the address of your server using the HTTPS protocol. Ignore the SSL certificate validation error (the SSL certificate is a self-signed one after initial installation, but can be replaced with a valid certificate after initial configuration is complete).”’

And, the longer installation docs (which most people probably don’t need, but it’s there, anyway) has a section about it: Automated Virtualmin Installation – Virtualmin

1 Like

What happens when you turn the server off boss? There should be a command to check that login info again.

What?! You know the IP of the server, right? The port is always 10000…

1 Like

I mean, there is a command that’ll tell you the port Webmin is configured to listen on, but are you going to remember webmin list-config -o port more easily than just “port 10000”?

2 Likes

im running ubutnu in a virtual server. I have no idea what its IP is. You see the delima? It has its own IP address that came out of now here. So how am I supposed to know what the IP address is?

ifconfig / ‘ip addr show’ usually do the trick.
Or set it static, so you’ll remember it.

that address was not accessible.

OK, that’s a new one.

But, you can use standard system tools to find out the IP of your system (ip ad sh)…but in many hosting provider environments, the IP of the VM is not the public IP and you’d need to check with your host for what the public IP is. But, how are you even logging in on the command line if you don’t know the IP or hostname?

Understood. Using hostname.domain:10000 worked. but still a command to see the last bit of information after installation would be very helpful.

It’s listed in the Virtualmin install log (/whatever/dir/virtualmin-install.log)

Ahh okay. Would be nice to have a menu to pull that. Like 1. See login info and IP
2. Restart panel etc

First off, if you didn’t reserve your server’s IP so that it’s static you’re going to live in a world of perpetual issues.

Secondly, it tells you where you can access it. If you don’t know your own network so you can access it, you’re going to have a lot of problems.

If I were you, I would stop. Right now. I mean halt everything.

Reserve your servers IP. Make a map of your network on paper. Then get started in earnest. If you don’t, you’ll have nothing but problems.

I DHCP’ed it via my router. BUt when I logged into the panel it change the IP addres from 10.10… to my DHCP’ed local IP. Does that make sense? The IP Is a virtual local IP in the VM. It really did cause an issue on this end.

In other words I was not able to connect via the IP it suggested. I guess that IP address was the correct VIRTUAL IP but it did not work. So I restarted the server. Lost all of that info, so all Im saying is a way to reaccess that information via command after a restart would be wonderful.

Virtualmin does not automatically change your system IP address. Webmin has a networking module that allows you to configure networking stuff, but it doesn’t happen automatically.

You shouldn’t need to restart the panel. It starts automatically on boot, and whenever changes are made that necessitate a restart, it restarts itself.

But, there is, of course, a system standard method of restarting services, which is also how you restart Webmin (the service that hosts Virtualmin):

systemctl restart webmin

Nearly everything in Virtualmin you might need to do from the command line is available via the virtualmin command (but finding the IP and restarting the service are not things you’d normally need to do in Virtualmin, and can be done with standard system tools).

virtualmin help

Will list all of the commands with a brief summary of what they do. And, virtualmin command without arguments will show the usage info for the command. virtualmin help command will show the manpage for the command.

Understood. Well thanks for the help!

1 Like

Your router is where you set the reserved IP for the server. You simply log in to the router, go to the advance settings and look for the networking tab. In that menu you should see the ability to reserve an IP. It will have all the devices on your network listed.

Simply assign the server to whatever IP it is presently on and save it and the router will save that IP for that particular computer so that any time it restarts it lands on that same IP and no other device will be allowed to occupy that IP.