How can i access my website via ip

DoctorX

New member
Joined
Jun 26, 2011
Messages
6
Hello,
My webhost has installed a direct admin control panel on my dedicated server.
How can i access my website via ip before forwarding the domain name to the server?

Thanks
 
Edit your hosts file on your computer.

c:/windows/system32/drivers/etc/hosts

add a line for your ip

123.456.789.0 www.yourdomain.com
123.456.789.0 yourdomain.com

After that you can restart your computer or flush your dns cache and clear your browser cache and restart it and then it should work.
 
reply

Hello, thank you for reply.
I think you didn't get what i mean.

Actually, i don't have any domain name.
i just have dedicated server with directadmin installed on it.
I want to access my website via ip:
example: i want to access my website like this: http://0.0.0.0 (ip)
so that i want to prepare my website before buying the domain name and forwarding it to the website.

i hope you understand what i mean.

thanks
 
What scsi sayd is totally right, forcing the hosts file you will manually point the domain/host to that ip.

No matter if you already registered the domain, just add the domain to the control panel and do what scsi sayd.

Other way, should be http://IP/~USERNAME

Regards
 
solution

Hello,
My webhost has installed a direct admin control panel on my dedicated server.
How can i access my website via ip before forwarding the domain name to the server?

Thanks



Check this folder: /var/www/html
There's your index.html file containing "Apache is functioning normally".
Also you can create sub-folders here and access them via: http://ip/subFolderName


-----------
mboss.org Mohammad Arbab
 
Hi, I have the same problem as the op. However, mine is a little bit different. I want to change over to a new server from a cpanel server. I do not have access to the /var/www/html folder. I only have access to domain/~username/public_html. I have my domain, ssl, and dns with cloudflare. I want to access to the website at the new server with directadmin. I want to test to make sure the site is functioning before point the domain to the new server. Here are my problem thus far:
If I enter the server ip I get "apache is function"
If I enter the ip/~username I get 404.
What I did thus far: 1) I created a new sub folder in the public_html folder 2) I created a subdomain from directadmin 3) I point an a record to the subdomain and I was able to see the default wordpress site I installed, but it looks funky (see attached).
I reach out to support but they have been slow due to the virus I guess. Any help me would greatly appreciated.
 

Attachments

  • Annotation 2020-04-10 193513.jpg
    Annotation 2020-04-10 193513.jpg
    78.1 KB · Views: 286
Back
Top