
If you’ve ever worked with วordpress long enough, you’ve probably run into that one annoying situation: your website exists, your server is alive, your files are all in place… but your domain just isn’t cooperating.
Maybe DNS hasn’t propagated yet. Maybe you’re migrating a site. Maybe something broke and your domain is pointing into the void.
So what do you do?
You bypass the domain entirely.
Yes — you can actually open a WordPress site using its IP address instead of the domain name. It’s a handy trick that developers, designers, and anyone working behind the scenes should absolutely know.
Let’s break it down in a simple, slightly entertaining way.

First, let’s answer the obvious question: why would anyone want to do this?
Here are some common scenarios:
You just pointed your domain to a new server. Everything is set up. You’re excited.
But DNS propagation? Not so much.
Instead of waiting hours (or sometimes longer), you can access the site instantly via IP.
Moving a WordPress site from one host to another?
Before switching the domain, you’ll want to test everything — layout, images, plugins, checkout flow, etc.
Using the IP lets you preview the site safely before going live.
Sometimes domains just… stop working.
Accessing the site via IP can help you troubleshoot without panic.
If you’re building or customizing a WordPress site, you might want to access it directly on the server.
No domain needed. Just the raw connection.

Normally, when you type:
www.yoursite.com
Your browser:
When you use the IP directly, you skip step 1.
You go straight to:
http://123.45.67.89
Simple, right?
Well… not always.
WordPress is very domain-dependent.
It stores your site URL in its database. That means:
…are all tied to your domain.
So when you open the site by IP, you might see:
Don’t worry — this is normal. And fixable.

Let’s start with the simplest method.
You can get this from:
ตัวอย่าง:
123.45.67.89
Just type:
http://123.45.67.89
If everything is configured properly, your site should load.
Sometimes you’ll need to go directly to:
http://123.45.67.89/wp-admin
This helps you log into the backend.

If you want a real preview (and not a broken-looking site), this is the way to go.
Instead of using the IP directly, you trick your computer into thinking the domain already points to your server.
On Windows:
C:\Windows\System32\drivers\etc\hosts
On macOS:
/etc/hosts
Add this line:
123.45.67.89 yourdomain.com
Now when you visit:
yourdomain.com
Your computer connects to the new server — even if DNS hasn’t updated globally.
This is what professionals use.

Some hosting providers give you a temporary URL like:
http://server123.hosting.com/~username
This is another way to access your WordPress site before the domain is ready.
Let’s be honest — opening a WordPress site by IP isn’t always smooth.
Here are the most common problems (and how to fix them).
WordPress might force redirect to your domain.
Update your site URL temporarily in the database:
siteurlhomeSet them to:
http://123.45.67.89
Images are usually stored with full domain URLs.
Cookies and sessions rely on domain consistency.
ใช้:
http://IP/wp-login.php
Or switch to hosts file method.
If your site uses HTTPS, accessing via IP may trigger warnings.
Yes, you can open a WordPress site by IP instead of a domain name by entering the server’s IP address directly into your browser. However, due to WordPress relying heavily on domain-based URLs, some elements like images, styles, or redirects may not function correctly.
When you open a WordPress site by IP instead of a domain name, the site may appear broken because WordPress stores URLs using the domain. This can cause missing images, incorrect links, and layout issues. Using a hosts file is a better way to preview the site properly.
The best method is to use your computer’s hosts file to map the domain to the server IP. This allows you to access the site as if the domain is already pointing to the new server, ensuring a full and accurate preview without broken elements.
Yes, it is generally safe to use an IP address or a temporary URL provided by your hosting service. These methods are commonly used for testing and development. However, they should not be used as a permanent solution for live websites.
While useful, this method isn’t always ideal.
Avoid using IP access when:
In those cases, always use the hosts file method instead.
Here’s how professionals typically handle this:
Clean, efficient, and no surprises.
Opening a WordPress site by IP is not a “daily-use” feature.
It’s more like:
But when you need it, it can save hours — sometimes even days.
The ability to open WordPress site by IP instead of domain name is one of those small but powerful techniques that separates beginners from professionals.
It gives you control.
It lets you work faster.
And most importantly, it keeps your workflow moving even when DNS or domains decide to misbehave.
ที่ AIRSANG, we deal with scenarios like this all the time — especially in cross-border eCommerce projects where timing, stability, and launch precision matter.
From ช็อปฟี่ builds to วordpress custom sites, we focus on:
If you’re building or scaling an independent website and want it done right — both visually and technically — this is exactly where we can help.
Because in the end, a great website isn’t just about how it looks.
It’s about how smoothly it works, even behind the scenes.
AIRSANG ให้บริการออกแบบเว็บไซต์ สร้างเอกลักษณ์แบรนด์ และโซลูชันอีคอมเมิร์ซที่คุ้มค่า ตั้งแต่ Shopify และ WordPress ไปจนถึงภาพสินค้าสำหรับ Amazon, เราช่วยแบรนด์ระดับโลกสร้าง พัฒนา และขยายธุรกิจออนไลน์ของพวกเขา.


















จองการโทรเพื่อเรียนรู้เพิ่มเติมเกี่ยวกับวิธีที่เอเจนซี่การตลาดดิจิทัลของเราสามารถยกระดับธุรกิจของคุณไปอีกขั้น.