On most of the server, we are having multiple ips and we are not sure on which ip cPanel license is required,at that time we can run the following command from the shell to check the correct ip address.
Login to the shell as a root user and run the following command.
curl -L http://cpanel.net/showip.cgi
or
lynx -dump http://cpanel.net/showip.cgi