/
What is the IP address of my CAS server?

What is the IP address of my CAS server?

Your hosted server will have one (or more) IP addresses assigned to it.  CAS setup & usage requires knowledge of your PUBLIC IP. This guide will help you quickly find it.

The simplest way:

wget -qO - ipv4.icanhazip.com

Option 2: For Ubuntu (and other Debian derivatives), type on the command line:

hostname -I
  • This will list ALL configured IP's for that server. 

  • With most hosting services, the first IP will be the "public" IP.

Based on the aforementioned premise, THIS will list the public IP (only):

hostname -I | awk '{ print $1 }'
  • Copy & paste the command ( usually Shift-Ctrl-C & Shift-Ctrl-V ) to avoid mistakes.

  • Assumes the first listed IP is the "public" IP.

Option 3: Lastly, this method is yet another (more cumbersome) way to list all your server's IP addresses:

This file is required for email notifications (amongst other purposes):

and should contain your public IP (by itself). This can be quickly created with:

  • execute as sudo (root)!

This file is required for the admin service to function:

and should contain your public IP. This can be quickly created with:

  • execute as sudo (root)!

NOTE: Digital Ocean (as of this writing) has problems with the pipe symbol ("|") when using the WEB CONSOLE.

The pipe "|" will be mistakenly converted to a ">" and the command will FAIL.

They are aware of this glitch and are working to resolve it with their vendors. In the meantime, they recommend that you use a regular SSH console to accomplish tasks & scripts involving pipes (as used in this article).

Related content

Set the BATM Server IP
Set the BATM Server IP
Read with this
Admin Service Issues
Admin Service Issues
More like this
Connect your BATM to CAS
Connect your BATM to CAS
Read with this
CAS GUI Startup
More like this
Terminal VPN Configuration
Terminal VPN Configuration
Read with this
Cloudflare Zero Trust for Admin
Cloudflare Zero Trust for Admin
More like this

Copyright © 2020-2024 General Bytes USA LLC