This article will help you to find the server IP Address or server name on a OrasiLabs server in Started/Running lab template.
OrasiLabs injects the current ip address into the host file for each server in a template. In the examples below you'll see a comment beside the entry in the host file like "#OrasiLabs" for these injected entries. This means that you can access any server in the template from other servers in the template by simply using: <server_name>.local (where <server_name> is the machine name you are trying to accesss). Note: Please do not set your server to use a static ip address, as this is not supported and will not work.
As you would expect, you can use various network information commands to find the IP address reported by the system on each server. The commands a a bit different, depending on the operating system.
On Linux systems, the command is "ifconfig", and it is part of the Net Tools collection. They may or may not be already loaded on the specific Linux server you are using, but usually when issuing this command, it will tell you how to load it if not already on the server.
On Windows systems, the command is "ipconfig". It is included on all Windows systems and behaves similarly to the Linux command.
We can use these commands to get to current server's LOCAL IP address if we need it.
You can also see the names and IP addresses related to servers used in the SAME OrasiLabs Template by looking at the contents of the "hosts file.
Linux:
/etc/Hosts
You can access this server in the template from other servers in the template by using: "client.local" to refer to it.
Windows:
c:\windows\system32\drivers\etc\Hosts
You can access this server in the template from other servers in the template by using: "win-client.local" to refer to it.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article