Hi all,
I have just finished a language program for my son ( it is written in HTML, CSS, and JS )
I am curious if anyone knows a simple way for him to test it out with our iPad instead of my laptop ( since I think tablet are much more child friendly ).
Thank you !
Girish Patil
Full-stack engineer
You can do this. Either connect your laptop to your Ipad's hotspot or make sure laptop and ipad are connected to same network.
Run
ifconfigin your terminal and look for en0, en1 or en (usually it will be en0). `en` are the ethernet interfaces which are WIFI interfaces in this case. Look for that IP.Example (below the IP is 192.168.0.100)
Now spin up a small server which takes care of your html pages. This server should be served over the IP you just found.
This can be easily done with any. In php
php -S IP_ADDRESS_HERE:PORT -t LOCATION_TO_BE_SERVEDConsidering the above it it could be something like this.
php -S 192.168.0.100:8085 -t LOCATION_TO_HTML_PAGESOpen a browser in your ipad and visit that IP with port.
There is an alternative way. You can use tunnels like Nrok, serveo.net or github.com/alexellis/inlets
Hope this helps.