Introduction
When experiencing issues between your cPanel server and another server, you may need to check what IP address your server is attempting to use. The easiest method is to use 'ping' from inside your server.
Procedure
In our example, we will use google.com as the domain whose IP we are looking for.
Log into your server using SSH or an appropriate method.
Use the 'ping google.com' command.
Linux:
Log into Linux-based server with SSH.
Type "ping google.com" on command-line, hit Enter.
# ping google.com
PING google.com (172.217.15.110) 56(84) bytes of data.
64 bytes from iad30s21-in-f14.1e100.net (172.217.15.110): icmp_seq=1 ttl=113 time=1.13 ms
64 bytes from iad30s21-in-f14.1e100.net (172.217.15.110): icmp_seq=2 ttl=113 time=1.17 ms
64 bytes from iad30s21-in-f14.1e100.net (172.217.15.110): icmp_seq=3 ttl=113 time=1.14 ms
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 1.131/1.148/1.171/0.032 ms
MacOS:
Open 'Terminal'
Type "ping google.com" and hit Enter.
$ ping google.com
PING google.com (172.217.1.142): 56 data bytes
64 bytes from 172.217.1.142: icmp_seq=0 ttl=116 time=24.218 ms
64 bytes from 172.217.1.142: icmp_seq=1 ttl=116 time=25.832 ms
64 bytes from 172.217.1.142: icmp_seq=2 ttl=116 time=33.461 ms
64 bytes from 172.217.1.142: icmp_seq=3 ttl=116 time=24.383 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 24.218/26.973/33.461/3.798 ms
Windows server:
Open the Command Prompt.
Type "ping.exe google.com" and hit Enter.
C:\Users\support>ping.exe google.com
Pinging google.com [2607:f8b0:4000:814::200e] with 32 bytes of data:
Reply from 2607:f8b0:4000:814::200e: time=32ms
Reply from 2607:f8b0:4000:814::200e: time=32ms
Reply from 2607:f8b0:4000:814::200e: time=32ms
Reply from 2607:f8b0:4000:814::200e: time=34ms
Ping statistics for 2607:f8b0:4000:814::200e:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 32ms, Maximum = 34ms, Average = 32ms
C:\Users\support>
The output will tell you what IP address the server is using for the domain.
This method is 'quick', but may not reflect what services are using. This guide is to get an idea of what IP is from inside your server.
Comments
0 comments
Article is closed for comments.