'How to run local html files on iphone and android mobiles?

How to run local files on iphone? I use Windows 7 and i have iPhone 4 and android . whenever I need to check on iphone browser I upload files on ftp and open that url in iphone.

Is there a way to check local file of my pc on iphone and android without uploading to ftp each time. Like I can see my videos of PC into iphone using Air Server on iphone.

I use internet on iphone and android using wi-fi router.

I don't want to use Emulators/Simulators I'm talking about checking local files directly on devices.



Solution 1:[1]

go to your android mobile browser and htttp://your local host ip/root folder

do not forget to make your local server online

Solution 2:[2]

• First you just need to copy your html and css files to a folder in your iPhone's storage

• Next go to Chrome browser and then type :'file:///sdcard/'

• This will open your internal storage in the browser, Now you just navigate to the folder were you copied your html, css files.

• And Chrome should render you html if you've named it as index.html

• If not just select your main html file and voila!

• Chrome will render your html ?.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ajay Patel
Solution 2 Sowmiyan S