Getting started with AirConsol...

Testing your game

8min
the simulator the airconsole simulator makes it easy for you to test your game it provides a way to load your game into the airconsole environment and shows you the screen and (on start) two controllers with that you can easily play your game in one browser window without having to use another device, such as a smartphone http //airconsole com/simulator/#debug\ your host or url open simulator demo https //www airconsole com/simulator/#debug\ https //game airconsole com/com airconsole testpong cdn airconsole com/2024 02 14 14 52 40/ how to access the simulator the website on which your game runs has to be accessible either by an ip or an url to load your game simply replace your ip or url with your games location if you use a local ip, use http //http airconsole com/simulator/#debug your ip or url if you use a https reachable game, use https //www airconsole com/simulator/#debug your url for example the pong game's testing url is https //www airconsole com/simulator/#debug https //game airconsole com/com airconsole testpong cdn airconsole com/2024 02 14 14 52 40/ or if hosted on localhost http //http airconsole com/simulator/#debug http //192 168 0 1/ note airconsole will try to access the /screen html and a /controller html, so make sure its accessible in the root url join with your smartphone of course you can additionally join with your smartphone just connect your phone like you would normally connect to a game go to airconsole com and enter the code which appears in the developer consoles top right note if you are testing with real smartphones, make sure you do not use http //localhost/ or http //127 0 0 1/, because localhost is not your computer on the phone but the phone itself! also make sure your devices are visible within the network to each other test https with ngrok once your game is uploaded to the airconsole store, it will be accessed via https this means all your external resources you load in your game have to be loaded through https too to simulate https locally we recommend to use ngrok or cloudflare tunnels go to ngrok website download and install ngrok ) (optional for unix based systems add to path sudo mv ngrok /usr/local/bin sudo mv ngrok /usr/local/bin ) execute ngrok in the terminal ngrok http 8000 ngrok http 8000 (assuming 8000 is the port your local webserver is running at) ngrok will display some urls now > copy the https url and try if it works in the simulator example your game url on localhost is running at 192 10 20 42 8080 192 10 20 42 8080 and the url from ngrok ( ngrok http 8080 ngrok http 8080 ) is https //cb501143 ngrok io https //cb501143 ngrok io to test your game in the simulator with https open https //www airconsole com/simulator/# https //cb501143 ngrok io/ troubleshooting using airconsole on a standard university/corporate network this issue can also be solved by using ngrok (see above) this way you can make your localhost public even if there is client isolation note to unity developers you need the latest airconsole unity plugin from github com released on 2016 02 01 and you should select "normal" as the browser start mode