I'm currently running a CentOS environment which provides HTTP service. It is connected to a LAN and only local users can access it.
If, for any reason, the local DNS fails in any way, the users may still access the server using the local IP address directly (192.168.1.N instead of, say, myservice.lcl). However, my users have no access to the physical server or the router so they cannot see or find out its IP.
The server is always hooked to a monitor, which is always on (waiting for login). I want to display on it the ip address of the server, without granting anybody access; namely, I want a black screen with white big font displaying ONLY the IP address without having any user logged in. This way, my users may know what address to type on their browsers with a quick glance at the screen.
Is there any way to do this?
EDIT: The IP Address is not static, it may vary from time to time, so I would need to get this via "ifconfig"