Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Jenny Swift
Jenny Swift
21,999 Points

404 error when I enter my IP address as the URL

Hi, for some background and more details, you can see my other related post here, but it's probably unnecessary. Basically, I've just switched from a shared host to Laravel Forge and DigitalOcean, and if I enter my IP address as the URL I get a 404 page not found error.

In case it's related, my app is not showing on my site-it just says 'No input specified'.

What could the problem be, please?

luke hammer
luke hammer
25,511 Points

this could be a number of things. Are you able to connect to your website any other way? Are you sure that you are looking of the public IP address of your webserver ?

Jenny Swift
Jenny Swift
21,999 Points

Hi Luke, thanks for the response! I am now able to connect to my site with the domain name as the URL. That is something I wasn't able to do before. But the IP address as the URL still doesn't work. Well I just copied and pasted the IP address that was sent to me in an email, so I think it should be correct.

2 Answers

luke hammer
luke hammer
25,511 Points

you can use name service lookup to confirm the IP address to the server.

in windows just open a command line and type

nslookup www.nameofyourcoolwebsite.com

this will provide you with the name server you use add the ip address connected to you domain name

Jenny Swift
Jenny Swift
21,999 Points

I'm on a Mac so I'm using whois. I don't see the IP address mentioned but my nameservers are pointing to the correct place. I have just been advised in my other forum post that it's not a big deal so not to worry about it. But thank you :)

luke hammer
luke hammer
25,511 Points

If you like my response please give me UPVOTE.

Jenny Swift
Jenny Swift
21,999 Points

Sorry I can't because this is in general discussion. I don't think there is an option to upvote or select best answer in general discussion.