本文介绍了在开发人员的标准大学/企业网络上使用Airconsole的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在大学里做一个飞机游戏机.不幸的是,像几乎所有大学一样,设备无法在网络上看到彼此.这意味着我无法从笔记本电脑向手机提供页面.因此,标准

http://www.airconsole.com/#http://<myipaddress>:8080/game/

不起作用.这样一来,大学生和大学游戏界的人们就不可能为飞机控制台制作游戏.

我什至尝试在数字海洋中设置远程服务器,将代码上传到那里,然后使用

http://www.airconsole.com/#http://<ipaddressofdroplet>:8080/game/

即使那没有用.自从我处于截止日期(2016年全球游戏果酱)之后,我最终放弃了.

是否存在变通办法,或者无法在典型的大学网络上制作用于飞机控制台的游戏?

解决方案

您可以使用 https://ngrok.com/之类的工具使您的本地主机公开,即使存在客户端隔离.

假设您在 http://192.168.0.36:7842/和 http://192.168.0.36:7842/controller.html . >

然后运行以下命令:

ngrok http 7842

这将为您输出类似的内容

Tunnel Status                 online
Version                       2.0.19/2.0.20
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://8941ec1a.ngrok.io -> 192.168.0.36:7842
Forwarding                    https://8941ec1a.ngrok.io -> 192.168.0.36:7842

您可以看到 http://8941ec1a.ngrok.io 现在转发到 http://192.168.0.36:7842

现在启动浏览器: http://www.airconsole.com/#http://8941ec1a. ngrok.io/,您应该可以连接智能手机.

Unity开发人员注意事项:您需要2016年2月1日发布的www.github.com上最新的airconsole unity插件,并且应选择正常"作为浏览器启动模式.

I tried to make an airconsole game at my university. Unfortunately like nearly all universities devices are not able to see each other on the network. That means I can't serve pages from my laptop to my phone. So, the standard

http://www.airconsole.com/#http://<myipaddress>:8080/game/

Does NOT work. This makes it impossible for university students and people at game jams at universities to make games for airconsole.

I even tried setting up a remote server at digital ocean, uploaded my code there and then using

http://www.airconsole.com/#http://<ipaddressofdroplet>:8080/game/

Even that didn't work. Since I was on a deadline (Global Game Jam 2016) eventually I just gave up.

Is there a workaround or is making games for airconsole on a typical university network just impossible?

解决方案

You can use tools like https://ngrok.com/ to make your localhost public even if there is client isolation.

Let's say you are running your game on http://192.168.0.36:7842/ and http://192.168.0.36:7842/controller.html is not accessible from a your smartphone.

Then run the following command:

ngrok http 7842

This will output you something like

Tunnel Status                 online
Version                       2.0.19/2.0.20
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://8941ec1a.ngrok.io -> 192.168.0.36:7842
Forwarding                    https://8941ec1a.ngrok.io -> 192.168.0.36:7842

You can see that http://8941ec1a.ngrok.io now forwards to http://192.168.0.36:7842

Now start your browser on:http://www.airconsole.com/#http://8941ec1a.ngrok.io/ and you should be able to connect your smartphone.

Note to Unity Developers: You need the latest airconsole unity plugin from www.github.com released on 2016-02-01 and you should select "Normal" as the browser start mode.

这篇关于在开发人员的标准大学/企业网络上使用Airconsole的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 14:32