First of all I am complete beginner in web hosting. This is my first time so please correct me if I am wrong.
What I want to do:
I have made an index.php
file. I am sure I have written the php code correctly. I want this file to be hosted by a web host. I don't want to purchase a domain name for this. I want to access this file over internet via only the IP address of website.
What I did:
I purchased a web host account on GoDaddy. I didn't purchase any domain names for my web hosting. I uploaded the index.php
file to the public_html
folder. Now I am trying to access my index.php
file using only the IP address of my website. Let's say my website's IP address is 166.XX.XX.XXX
. Here are the screenshots for my website's IP address
and File explorer window
:
What's the problem:
I tried visiting http://166.XX.XX.XXX/public_html/www/index.php
on my browser but I am not able to access index.php
using the IP address. Its showing me 404 page not found error. If I try to visit http://166.XX.XX.XXX/
its showing a Coming Soon
page instead of my index.php
page.
Is it possible to access my index.php
file with just the IP address or do I have to buy domain name first.