Use localhost for testing

it returns this

Is this an APP inventor issue. Can it run with localhost ??

I am looking at my phone at the moment, running an example app in companion, which is displaying a php file from my local server.

Check your work

You remain confused. Your AppInventor app cannot refer to the localhost of another machine, as "localhost".

You must use the ip address of that local machine with a server in order to return its served files to your webviewer, or to run php code through the web component

image

http://192.168.1.5/molloy/index.html

This is not working

Is you phone/device on the same subnet ?

Is your local server available to any other device on your local network ?

path

Should I include htdocs ?

not on any network

How are you then testing, with a compiled app ?

If not on any network, then you will not be able to connect to any network services offered by any other local computers....

My phone and computer are on the same wifi

That is a network....

Why is this not working ? it's too slow to be testing with an online URL.

No-one knows, because you need to be more transparent about your operating environment...

  1. Is your php/mysql correctly setup on your host computer?
  2. Have you tested this?
  3. Can you access the host server from your mobile device ? (e.g. view a php web page)

Please provide as much detail as possible.

Try

http://192.168.1.5/molloy/molloyph.php

I tried to work with the online URL but it's not right. I need to get the localhost working.

Can you create a simple web page: index.htm and view it with the WebViewer component?

http://192.168.5.1/index.php returns the APP but no web data

http://192.168.5.1/index.php could not be loaded because net::ERR_CONNECTION_TIMED_OUT

that URL in the my browser