How to access WordPress website through IP address given only cPanel access

I've been given an ip address & port number as a url which gives me access to cPanel to set up a WordPress site. I can log in to cPanel ok, and used QuickInstall to install WordPress.

cPanel seems to be set up with the domain name of the intended website (let's call it, but the domain DNS settings are still pointing at the old host, so loads the website from the old host.

Through the new web host's cPanel, the QuickInstall tool says to access the new WordPress install at, but of course that just loads the site at the old host.

How can I access the new WordPress installation on the new host?

For a smooth transition from the old host to the new host, I want to migrate the old WordPress site to the new WordPress site and test it before updating the DNS settings for to point to the new host.
LVL 36
Terry WoodsIT GuruAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
If the host allows it, you can access the site at

If not, you need to update the IP in the DNS.

Terry WoodsIT GuruAuthor Commented:
Thanks Dan. I can bring up the WordPress login, but it seems to want to post the data to the old host at so it's not accepting the credentials.

I think I might just have to make the new host live then fix the site up, and accept the downtime.  

Slightly different question - presumably the ip address for accessing cPanel (but without the port number of course) will be the ip address I should use for the A record setting for the domain
Lucas BishopClick TrackerCommented:
You'll want to update the hosts file on your personal computer to use the new IP as the reference for the domain name.  

This is a common technique for testing a dev version of your site before taking it live.

For example, if is the IP address where the new version of your site is hosted at, you'd simply add an entry into your hosts file like:

Open in new window

This will override the IP Address at the DNS server, for your computer only. Once you've confirmed everything is configured correctly and rendering as expected, then you'd go through the process of updating the actual dns settings online.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

Dan CraciunIT ConsultantCommented:
@Lucas: that technique only works if the host has only one site at that IP.
If there are more sites for that IP (and usually there are), you'll get the "Great success" page from Apache or whatever web server they use.

@Terry: yes, that's the IP for the address (A) record.
Lucas BishopClick TrackerCommented:
@Dan: this works perfectly for sites hosted on dedicated AND shared ip addresses. I've tested close to 100 web sites on my own shared ip this way. Only way this fails is if your server isn't configured to listen for the domain.

This is the recommended testing process nearly every host will advise you on:
Dan CraciunIT ConsultantCommented:
@Lucas: yup, my bad. I navigated to the IP without changing the hosts file, so the request did not contain the site's name.
Terry WoodsIT GuruAuthor Commented:
Thanks guys!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.