Hosting a cross-border e-commerce store close to both China and Vietnam

If you run a cross-border e-commerce operation that ships out of China and sells into Vietnam, you face a latency problem that most shared hosting plans cannot solve. Your storefront loads quickly for a user in Guangzhou or Shenzhen, but the same page takes three seconds to render for a visitor in Hanoi or Ho Chi Minh City. Payment callbacks time out, the cart page hangs, and you lose conversions on the Vietnam side.
The fix is not a faster international plan. The fix is placing a local node inside Vietnam. This article walks through the architecture decisions: where to put the storefront, where to keep the admin panel, how to route payment callbacks, and why a Windows VPS in Vietnam with a dedicated IPv4 is the practical choice for many cross-border teams.
跨境贸易中,越南本地节点能降低支付回调延迟并提升本地用户的购物体验。
A local Vietnam node reduces payment callback latency and improves shopping experience for Vietnamese end users.
Prerequisites
- A Windows VPS or Linux VPS with full Administrator or root access, purchased from a Vietnam-based provider such as thueVPS.
- An e-commerce platform you control, WooCommerce, Magento, Shopline, or a custom store, with the ability to split the frontend from the admin panel if needed.
- A domain pointed to the Vietnam VPS IPv4 via an A record.
- Basic familiarity with RDP (for Windows VPS) or SSH (for Linux VPS) and a firewall tool such as Windows Defender Firewall or nftables.
- Your Chinese domain registered with a mainland or Hong Kong registrar, and the Vietnamese domain (if any) registered with a local provider.
Why a local Vietnam node matters for cross-border China Vietnam ecommerce
The Vietnam internet is not a single pipe into Asia. User traffic from Vietnam stays inside Vietnam when the server is inside Vietnam, served by domestic carriers such as Viettel (the military-run telecom giant that owns the largest fibre and mobile network), VNPT (Vietnam Posts and Telecommunications Group, the former state monopoly, another major backbone operator), FPT Telecom (the private competitor with a strong consumer broadband base), and CMC Telecom (a Tier-3-focused provider that serves many datacentres in Hanoi). Domestic bandwidth is fast, 100 Mbps by default on a 1 Gbps port, because the routing never leaves the country.
International traffic from a Vietnam node, conversely, leaves via a shared pool of roughly 4 to 10 Mbps. That means a user in China loading your storefront from a Vietnam server will be slow, but a user in Vietnam loading the same storefront will be fast. For a cross-border store that serves Vietnamese shoppers, the frontend must sit on a Vietnam node where it reaches them over domestic routes, not cross-border transit.
The network architecture has three moving parts: the storefront that the shopper sees, the admin panel where your team in Guangdong operates, and the payment callbacks that each side needs to confirm.
Architecture: storefront on a Vietnam VPS, admin panel in China
Placing the storefront
Serve the storefront from a Windows VPS running in a Vietnam datacenter (Viettel IDC, VNPT IDC, or Tier-3 facilities such as those from CMC Telecom). The VPS gets one dedicated IPv4 from the Vietnam range, which means two things: Vietnamese DNS resolvers return a Vietnam-located address, and Vietnamese CDN or caching proxies recognise the server as local and do not reroute traffic internationally.
On a Windows VPS, you can run the store as an IIS-hosted application or install a WAMP/XAMPP stack for a PHP e-commerce platform such as WooCommerce. Access is via RDP, which your team in China can use to manage the site, apply patches, and troubleshoot without exposing the admin panel publicly. The VPS comes with NVMe storage, full Administrator access, and you can take snapshots and backups before any risky update.
If your stack runs on Linux, the alternative is a Linux VPS with Ubuntu 24.04 LTS or Debian 12, the same dedicated IPv4, and the same monthly billing structure. Linux is lighter on RAM (useful for the 2 GB base plan) but your team needs SSH proficiency. The architecture is identical, the storefront sits on the Vietnam node, the admin panel stays elsewhere.
Keeping the admin panel in China
Your operations team, warehouse staff, customer support, procurement, logs into the e-commerce admin panel from offices in Shenzhen, Guangzhou, or Kunming. That panel should not live on the Vietnam VPS because the latency from China to Vietnam for interactive work is noticeable (the shared international pool is roughly 4 to 10 Mbps, not suited for dashboard APIs). Instead, run the admin panel on a server inside China, or use a lightweight tunnel such as WireGuard to a VPS that fits your traffic for a small admin reverse proxy.
A practical middle-ground: host the backend database on the Vietnam VPS (where the storefront hits it over local loopback) and expose a secure API that the China-based admin panel calls. This keeps the inventory and order data close to the storefront, while the admin interface stays fast for your Chinese team. Use an HTTPS token or client certificate to authenticate the admin panel requests, do not leave the API unprotected because the Vietnam IPv4 is public.
Payment callback routing: why the Vietnam IPv4 matters
Payment gateways in Vietnam, such as VNPAY, MoMo, or bank transfers processed through local acquiring banks, send callbacks to the IP address you register as the return URL or callback endpoint. If you register a Chinese IP, the gateway's callback travels from Vietnam to China over international transit, and the shared international pool of roughly 4 to 10 Mbps on the Vietnam side becomes the bottleneck. Worse, if the callback fails three times, many Vietnamese gateways mark the transaction as failed and the shopper sees a "payment not confirmed" screen.
Register the callback URL with your Vietnam VPS IPv4 instead. The payment gateway sends the callback to a local IP, which lands on your server over domestic routing, the 100 Mbps domestic bandwidth, no contention, sub-10 ms latency within Vietnam. Your storefront then confirms the order and the database updates locally. If you also need to notify a China-side system (for example, to trigger fulfilment in a Shenzhen warehouse), push that notification over a separate HTTPS connection to a small API running on a Chinese server. That second leg is allowed to be slower because it does not block the shopper.
Domain and DNS strategy
Shoppers in Vietnam load the store from a domain such as shop.yourbrand.vn pointed to your Vietnam VPS IPv4. Shoppers in China load a separate domain such as shop.yourbrand.cn pointed to a Chinese CDN or server inside China. The same product catalogue and inventory sit on the same database on the Vietnam VPS, so stock levels are consistent across both domains.
Configure rDNS (reverse DNS) on your Vietnam VPS IPv4 to match the .vn domain. Many Vietnamese email services and payment gateways check that the IP resolves back to a name in the .vn zone before trusting SMTP connections or callback endpoints.
Example: a WooCommerce store with a Windows VPS
- Order the VPS. Choose a Windows VPS plan with at least 2 GB RAM, VNLite (1 vCPU, 2 GB RAM, 20 GB NVMe) is a starting point for a WooCommerce site with a few hundred products; move to VNx2 (2 vCPU, 4 GB RAM, 50 GB NVMe) if you run additional plugins or a Redis cache.
- Set up the storefront. Install IIS and PHP via Web Platform Installer, or use XAMPP for a quicker setup. Import your WooCommerce site from a backup. Point the
.vndomain A record to the VPS IPv4. - Configure the firewall. On Windows Server, open only ports 80 (HTTP) and 443 (HTTPS) to the public, plus port 3389 (RDP) restricted to your China office IPs. Close everything else.
- Set up the payment gateway. In the WooCommerce payment settings, set the callback or return URL to
https://shop.yourbrand.vn/wc-api/vnpay. Register the VPS IPv4 with VNPAY or your chosen gateway. - Verify the callback. Place a test order with a real test card. Check the WooCommerce logs: the gateway callback must arrive within 500 ms. If it takes longer, check that the callback URL resolves to the Vietnam IPv4 and that the firewall allows inbound on port 443 from the gateway's IP range.
- Go live. Take a snapshot of the VPS once the site is verified. Enable weekly backups.
Trade-offs and alternatives
Why Windows over Linux? If your team already manages WooCommerce via an RDP desktop, a Windows VPS is natural, you log in, you see the desktop, you run the browser and the store admin in the same session. Linux requires SSH + command-line WP-CLI, which is faster once automated but steeper to train non-sysadmins. Both are available; the choice depends on who manages the store day-to-day.
What about serving China from the same VPS? Not recommended. The shared international pool of roughly 4 to 10 Mbps means page load times for a user in Kunming or Nanning will be 3-6 seconds even on a good day. Use a separate China-hosted CDN or a small server inside China for the .cn audience, and let the Vietnam VPS serve only Vietnam traffic over the 100 Mbps domestic link.
Can I run two storefronts on one VPS? If your traffic is low, under 1,000 daily active users in Vietnam, a single VNx2 (2 vCPU, 4 GB RAM) can host both the Vietnam storefront and a reverse proxy for order notifications to your China system. Monitor RAM usage: WooCommerce with a few plugins plus the PHP-FPM pool can use 1.5 GB on its own. Upgrade to VNx4 (4 vCPU, 8 GB RAM) if you see swap usage.
Troubleshooting common issues
Callback from VNPAY times out
Check that your Windows firewall allows inbound HTTPS (port 443) from the VNPAY IP range. Then verify that the callback URL in the WooCommerce settings does not contain a domain that resolves outside Vietnam. If the domain points to a CDN, the gateway may follow the CNAME outside the country. Use a raw A record to the VPS IPv4.
Admin panel over RDP is slow from China
RDP over the shared international pool can feel sluggish, especially if you are logged in for hours. Two workarounds: (a) use RDP compression and reduce the desktop colour depth to 16-bit, or (b) install a lightweight admin panel tool such as HestiaCP on a Linux VPS instead, and access it via HTTPS rather than RDP.
Vietnam shoppers report "page not loading"
Your .vn domain might still be resolving to an old shared IP from a previous hosting provider. Run dig A shop.yourbrand.vn from a Vietnamese DNS resolver (for example 1.1.1.1 or 203.113.131.1, the Viettel public DNS). If the returned IP is not your Vietnam VPS IPv4, update the A record and wait for TTL expiry (usually 300 seconds).
FAQ
Can I use a Linux VPS instead of Windows for this cross-border store?
Yes. If your team is comfortable with the command line and WP-CLI, a Linux VPS with Ubuntu 24.04 LTS runs WooCommerce just as well and uses less RAM. The architecture, storefront in Vietnam, admin panel in China, callback on the local IPv4, is unchanged. Both OS options include NVMe storage, a dedicated IPv4, and monthly billing at thueVPS.
Will a Vietnam VPS speed up the store for users in Guangxi or Yunnan?
No. The VPS domestic bandwidth is 100 Mbps inside Vietnam. Traffic from Guangxi or Yunnan leaves the country and travels over the shared international pool of roughly 4 to 10 Mbps. For users in southern China, serve the store from a China-based server or CDN, and keep the Vietnam node for Vietnamese shoppers only.
Do I need a Vietnamese business license to rent a VPS in Vietnam?
Many Vietnam providers, including thueVPS, accept foreign individuals and companies as customers. You do not need a Vietnamese business entity to rent a VPS, though you must use it for lawful business activity. Check the provider's terms, some require a local tax ID for invoicing if you need a Vietnamese VAT invoice.
How much RAM does WooCommerce need on a Vietnam VPS?
A fresh WooCommerce installation with no plugins uses about 256 MB RAM for PHP and the webserver. Add 3-5 plugins, a product catalogue of 500 items, and daily traffic of 1,000 visitors, expect 1-1.5 GB RAM usage. Start with a VNLite (2 GB RAM) for testing, upgrade to VNx2 (4 GB RAM) for production with caching (Redis or LiteSpeed).
Can I host the .cn and .vn domains on the same VPS?
You can, but the .cn domain will load slowly for users inside China because the traffic must exit Vietnam. For a better user experience, point the .cn domain to a server inside China and keep only the .vn domain on the Vietnam VPS. Both can share the same product database if you connect over a secure API.
What is the typical latency between a Vietnam VPS and a Chinese payment gateway?
If the gateway server is inside China, the round-trip time from the Vietnam VPS via the shared international pool is typically 60-120 ms under good conditions, but can spike to 300+ ms during peak hours. This is acceptable for server-to-server callbacks that are not time-critical (e.g., one retry allowed). For real-time checkout verification, keep the callback on the Vietnam side.
Related articles
- Why a Vietnam IPv4 matters when your users are in Vietnam
- Vietnam VPS vs Singapore VPS for serving Vietnamese users
- Should your CDN origin sit inside Vietnam?
- How to rent a VPS in Vietnam as a foreign company
跨境中越电商服务器架构:越南本地节点的必要性
经营中越跨境电商时,把店铺的前端放在越南本地的 VPS 上,可以让越南用户享受高速国内带宽(100 Mbps),同时确保支付回调走本地 IPv4 而不因国际带宽瓶颈超时。管理后台和.cn 域名应留在中国境内,操作团队获得更快的访问速度。Windows VPS 通过 RDP 远程管理,适合不熟悉命令行的团队,而 Linux VPS 则更节省内存。建议选择至少 2 GB 内存的配置,并按流量增长升级至 4 GB 或更高。


