Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I test a website being developed locally from remote device (like an iPhone)?

I am developing a new WordPress theme and am doing this locally on my laptop using MAMP. On my laptop I can access the site at localhost:8800.

Is there a way I can visit this localhost site from my iPhone? I'd like to see what the theme looks like on mobile devices rather than just resizing my browser. Could this work if I make an ad hoc WiFi network between the two?

like image 681
Garry Pettet Avatar asked Apr 11 '13 10:04

Garry Pettet


People also ask

What is a way to test how a Web page will look on a mobile device?

Use an online tester or emulator Emulators are generally used for testing apps in their native environments, but many of them are available for website responsiveness. You can also find basic testers online to paste in your URL and see what it looks like on smaller devices.

How do you access a website running on localhost from iPhone browser?

If you have your localhost address in your clipboard (e.g. http://localhost:3000 ), you can hold down Option ⌥ with the IP menu open to replace the "localhost" part with your IP. http://localhost:3000 then becomes something like http://192.168.0.1:3000 .


1 Answers

try the link How do you access a website running on localhost from iPhone browser here is the something you might be looking for.

or if you want to test your site on different devices http://quirktools.com/screenfly/ this link might be helpful ;)

like image 150
anstrangel0ver Avatar answered Oct 05 '22 00:10

anstrangel0ver