Full URL to open an Index.htm file?

Hi,

I don’t know if this is an appropriate forum to post

this question, but I will attempt to anyways!

When I type the following path in my google address bar, I can open an index.htm file

(which resides on my machine) in the google browser:

file:///C:/…/…/index.htm

However, if I try to open the same index.htm file from my iPhone, Safari says it can’t find the file?

I am wondering if its possible to open an .htm file

from Safari browser?

What I have tried:

  1. I have looked up my public IP which is: 70.53.xx.xx

  2. I set my router’s port forwarding to port 80

  3. I set port trigering to port 80… not sure about this though???

I enter in Safari’s browser’s address bar the following path:

70.53.xxxx/c/…/…/index.htm

This doesn’t work as Safari complains it can’t find the file.

Does someone know what I am doing wrong… please view attachments for port 80 setting in my router.

Thanks all

You also need a web server running on the machine with the file.

/mike

Yup, Safari on your pc could only show it because it was opened as a local file (because of the file:// prefix to the path). When using an ip adres Safari work like a regular webbrowser using the http- protocol. And there wasn’t a webserver on your pc to host it. So what you are looking for is installing a small webserver to host that index.html file as a mini-website. I can’t give suggestions as I’m out of the loop in these sort of apps. But I’m sure Google knows plenty of them.

p.s. Do you want to host this index.html page to the internet? Or do you only need to use it inside your home network? If the latter, then you do not need the portforwarding rules. But use the home network adres of your pc 192.168.0.105 instead.

Also, if it needs to be available on the internet, then you pc needs to be powered 24/7!

2nd also: (web)servers need to have a steady IP adress inside your home network. So either reserve this .105 ip adres in you router DHCP range for the MAC-adres of this pc. Or give your pc a static ip-adres in the network settings. Otherwise your pc might get a different ip-adres from your router after prolonged de-activation. Especially if it is a wireless connection, which is renewed on an hourly basis.