Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
Article3 min readViews1

How to Check Server IP Addresses and Routes Without Changing the Network

Quick diagnostics with ip: interfaces, addresses, and the selected route to the recipient. Helps gather facts without risking loss of remote access.

Carefully routed cables between network switches
In this article

The server cannot reach an external service even though the network appears configured. First, check the actual addresses and route. Changing the gateway or restarting the network service via a remote connection before this is dangerous: you may lose access and complicate recovery.

Check interface addresses

This guide is for Linux with iproute2. The commands below display status and do not alter network configuration.

ip -brief address show

A brief output shows interface names, status, and assigned addresses. Compare them with the expected layout: public network, internal network, VPN, or container interfaces. The mere presence of an address does not confirm reachability to the intended recipient.

Check address families separately. An application may attempt to use IPv6 while you manually inspect only the working IPv4 connection. Such checks cannot be considered equivalent.

Read the routing tables

For standard IPv4 and IPv6 routes:

ip route show

ip -6 route show

Pay attention to the default route, interface, and gateway. If policy-based routing is in use, a single main table may be insufficient. Reviewing rules helps determine whether further inspection of additional tables is required:

ip rule show

Do not delete "extra" routes based on appearance. They may serve VPNs, a separate provider, or background traffic not visible in the current user scenario.

Identify the selected path

Enter the destination IP address you are actually verifying after the read command:

read -r TARGET_IP

ip route get "$TARGET_IP"

This is a local route lookup, not a probe sent to the destination. It helps reveal the selected interface and source address. A successful output does not prove that the remote side responds or that the firewall allows the connection.

Analyze the result in context

Example: the request should go through the internal network, but an external route was selected. Check the destination address, routing rules, and the VPN scheme. Another case: the path looks correct, but the connection fails. In that scenario, the next check concerns port availability and filtering rules, not a random gateway replacement.

If the issue occurs only in the application, compare its environment with the terminal. A container, a separate network namespace, a proxy, or a routing policy can alter the path. A successful request from the host is not a complete verification of the container.

What to save for analysis

You need the timestamp, recipient IP, address family, selected source address, and interface. For external recipients, transmit only the information necessary for support; do not publish the entire internal addressing scheme.

After a confirmed change, repeat the same route search and service request. If the path has not changed but access is restored, the cause may lie at another level. The diagnostic conclusion must explain exactly where the connection breaks, not merely record another network restart.

In the report, specify whether the command was executed on the host or inside the container. Without this detail, two correct findings may appear contradictory.

Discussion 0

Share your experience and ask questions. Comments without links appear after editorial review.

No comments yet. Start the discussion.