Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

How to use Xampp to cross-browser test your site?

Hi,

So i should be supposed to be able to use xampp to test my site in different kinds of browser versions and doing other tests that requires the site to be online. I have gotten it to work so far that i can see my website if i write localhost/****, but when i try to test it on for an example browsershots.org i get an error message saying: "Server IP address 127.0.0.1 is disallowed".

Do anyone know what i am doing wrong, and how i can make it work?

I'll put another question in too, I have also heard about a program called mamp, doing the same thing(I think?). Which of the two is the best? Or is it all about personal preference?

Thanks in advance!

4 Answers

Kevin Korte
Kevin Korte
28,149 Points

So browsershots can't see your site, because it's not available online to the public, it's just visible to your own computer. You would need to upload your site to an actual webserver, and than test it there.

IP 127.0.0.1 is a local IP. It's not available to anything outside of your network. In this case your network is only your computer, which is running the Apache server.

Mamp is basically the same thing as XAMPP. I've used them both, I don't really have a preference between the two.

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Localhost is a special type of server that allows you to mimic connectivity to the web but do PHP and Wordpress development "locally" I,e. Doesn't require an Internet connection,

To use browser shots I'm afraid you will need to upload your files to a web host :)

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Just in case someone with the same question would read this, i managed to use browsershots, google insights etc using XAMPP - All i had to to was to forward port 80 and when the XAMPP apache server was on write my ip address in the adress bar of the browser followed by /nameofthefolderwiththewebsite, hopefully this will help someone looking for the same answer that i was.