You rented a VPS in a Jakarta data center. Your target audience is mostly on IndiHome, Telkomsel, Biznet, or XL. Traffic stays domestic, right? Not necessarily. A surprising number of Jakarta-hosted servers route traffic to Indonesian ISP subscribers through Singapore and back, adding tens of milliseconds of latency that should not exist. The fix starts with proving where your packets actually go.
Why "Jakarta VPS" Does Not Guarantee a Domestic Path
Physical location of a server and network path of its traffic are two different things. Your VPS sits in a rack in Jakarta, but the hosting provider's upstream network decides how packets reach end users. If your VPS provider does not peer with Telkom Indonesia (IndiHome's parent, AS17974) at a local internet exchange like IIX or OpenIXP, traffic has no direct local route. The next best path, chosen by BGP, often goes through an international transit provider with a node in Singapore.
So the packet leaves Jakarta, crosses to Singapore (or sometimes Hong Kong), hits a transit network that does peer with Telkom, then comes back into Indonesia to reach the IndiHome subscriber. Round trip adds roughly 20-40 ms compared to a direct domestic path, sometimes more during congestion on submarine cable links.
This is not a bug. It is how BGP works: routers pick the best available path from what they know, and "best" means shortest AS path or lowest metric, not shortest geographic distance. If no direct peering exists between your VPS provider's AS and the user's ISP AS, the path goes wherever the peering relationship exists.
The research context confirms this pattern: direct peering between a hosting network and major Indonesian operators like Telkom or Indosat is what keeps latency low. Without it, even content served from a Jakarta edge node can take an international detour.
Trace the Actual Path with mtr
mtr combines ping and traceroute into a single tool that continuously probes each hop. It shows packet loss and latency per hop, making it easy to spot where traffic leaves Indonesia and where it re-enters.
Run this from your VPS toward a known IndiHome IP (or any target IP on the ISP you want to test):
mtr --report --report-cycles 30 --aslookup TARGET_IP
--report runs a fixed number of cycles then prints a summary. --report-cycles 30 sends 30 probes per hop (enough to see patterns). --aslookup adds the AS number next to each hop, which is the key piece for identifying which network owns each router.
If mtr is not installed, install it with your package manager (apt install mtr on Debian/Ubuntu, yum install mtr on CentOS/RHEL).
Sample output format (illustrative, not from a real trace):
HOST: your-vps Loss% Snt Last Avg Best Wrst StDev AS
1. 10.0.0.1 0.0% 30 0.5 0.4 0.3 0.8 0.1 AS12345
2. core-jkt.provider.net 0.0% 30 1.2 1.1 0.9 2.0 0.2 AS12345
3. sg-peer.transit.net 0.0% 30 12.8 13.1 12.0 15.2 0.8 AS67890
4. sgx-core.transit.net 0.0% 30 13.5 13.8 12.5 16.0 0.9 AS67890
5. jkt-gw.telkom.net.id 0.0% 30 25.1 26.3 24.0 30.5 1.5 AS17974
6. customer-subnet.telkom 0.0% 30 26.0 27.1 25.0 31.0 1.4 AS17974
Look at hop 3 and 4: hostnames contain sg (Singapore), AS changed from your provider to a transit network. Traffic left Indonesia. Hop 5 shows it re-entering Telkom's network in Jakarta. That Singapore detour added roughly 12-13 ms each way.
A healthy domestic path looks different: AS numbers go directly from your provider's AS to the destination ISP's AS, hostnames stay in .id or contain jkt/sby (Surabaya) locality markers, and latency between hops stays under a few milliseconds.
Reading Hop Hostnames and ASNs
Two things tell you where traffic is geographically and which network owns each router:
Hostnames. Most carriers embed location codes in router hostnames. Common patterns: jkt or cgk for Jakarta, sub or sby for Surabaya, sin or sgp for Singapore, hkg for Hong Kong. Not every hop responds with a hostname (some show only an IP), but when they do, the location code is reliable.
AS numbers. Each network on the internet has an Autonomous System Number. Key ones for Indonesian ISPs:
- Telkom Indonesia (IndiHome, Telkomsel): AS17974 (also AS7713 for some Telkom backbone segments)
- Indosat Ooredoo Hutchison: AS4761
- XL Axiata: AS24203
- Biznet: AS17451
When you see your VPS provider's AS go directly to one of these without an intermediate transit AS in between, traffic is peered domestically. When a foreign transit AS (common ones include large international carriers) appears between them, traffic is leaving the country.
You can look up any AS number with whois AS17974 from a terminal, or use a web-based WHOIS service.
Run the Trace from Both Ends
Tracing from your VPS to the user shows the outbound path. But internet routing is asymmetric: the return path (user to your VPS) can be completely different. A page load involves traffic in both directions, so you need visibility into both.
From the VPS side, you already have mtr. From the user side, options depend on the situation:
- Ask the user to run traceroute or mtr. On Windows,
tracert YOUR_VPS_IPworks without installing anything. On macOS or Linux,tracerouteormtrif installed. - Use a looking glass or route server. Some Indonesian ISPs and IXPs run public looking glass tools that let you run traceroute from inside their network. Search for the ISP name plus "looking glass" to find these.
- Reverse traceroute services. Some hosting providers offer a looking glass from their network. Check your VPS provider's website for one.
If the forward path (VPS to user) is domestic but the return path (user to VPS) goes through Singapore, the user still experiences higher latency on uploads, form submissions, and TCP handshakes.
What to Do When Traffic Takes an International Detour
Once you confirm traffic is leaving Indonesia unnecessarily, your options:
Check if your VPS provider peers at Indonesian IXPs. Look up your provider's AS number on PeeringDB (peeringdb.com). It shows which internet exchanges they connect to and which networks they peer with. If they are present at IIX or OpenIXP but not peering with the specific ISP causing the detour, the provider might be able to establish that peering. Worth asking their support team.
Consider a provider with better domestic peering. Not all Jakarta VPS providers have the same peering arrangements. Some have direct peering with Telkom and Indosat; others rely entirely on international transit. The difference in latency for domestic users can be significant.
Use a CDN with local PoPs that peer directly. A CDN with edge nodes inside Telkom or Indosat's network can serve cached content over a direct local path regardless of where your origin server sits. The research context describes this exact architecture: edge nodes placed at operator-local hubs with direct peering, achieving very low TTFB for cached content. If your content is mostly static or cacheable, this sidesteps the peering gap entirely. For more on verifying which PoP actually serves your users, see checking CDN PoP location in response headers.
Investigate ISP-specific slowness. If latency is bad only from one ISP (say Telkomsel) but fine from Biznet, the problem is a missing peering relationship with that specific operator, not a general server issue. This pattern comes up often in support tickets. For a structured approach to diagnosing ISP-specific complaints, see diagnosing slowness from specific Indonesian ISPs.
Domestic Latency as a Measurable Baseline
Research context suggests IndiHome-to-Jakarta-VPS latency typically falls in the 5 to 12 ms range when direct peering exists. If your mtr shows 30, 40, or 50+ ms to an IndiHome subscriber from a Jakarta VPS, that gap is almost certainly an international detour. The numbers give you a concrete baseline to compare against.
Run mtr periodically, not just once. Routing changes. A provider might add or lose a peering session. A submarine cable issue might shift traffic temporarily. Keeping a few saved mtr reports gives you a before-and-after comparison when latency complaints arrive.
The core takeaway: "server is in Jakarta" describes physical location, not network topology. The only way to know if your traffic stays domestic is to trace it. mtr with AS lookup takes 30 seconds to run and answers the question definitively. Do it from both ends, read the AS numbers, and you will know exactly where your packets travel.