[英]How to easily host a WAN server purely for testing
I'm working on a 2D top-down multiplayer game, and though I have thoroughly tested it on my LAN network, I would like to distribute it to some friends accross the world so they can test it too.我正在开发一个 2D 自上而下的多人游戏,虽然我已经在我的 LAN 网络上对其进行了彻底的测试,但我想将它分发给世界各地的一些朋友,以便他们也可以测试它。 I have read a few topics on hosting WAN servers but it's always for professional things or for websites, but I just want a simple server on which only few people will connect.
我已经阅读了一些关于托管 WAN 服务器的主题,但它总是用于专业的事情或网站,但我只想要一个只有少数人会连接的简单服务器。
I started learning networking just a week ago, so I only know the basics, and if there's a way for them to connect directly to my computer somehow, I'd be happy to know.我一周前才开始学习网络,所以我只知道基础知识,如果有办法让他们以某种方式直接连接到我的电脑,我很乐意知道。
I'm using Lua, Love2D and LuaSocket(UDP)我正在使用 Lua、Love2D 和 LuaSocket(UDP)
Networking is all about IP addresses.网络是关于 IP 地址的。 If you are trying to play with both IPv4 and IPv6, get your own IP address via http:\/\/whatismyip.live<\/a> or whatismyip.host etc and (like sorak said) map it with free tools like noip.com .
如果您尝试同时使用 IPv4 和 IPv6,请通过
http:\/\/whatismyip.live<\/a>或 whatismyip.host 等获取您自己的 IP 地址,并(如 sorak 所说)使用 noip.com 等免费工具进行映射。 Websites will only give you external IP address.
网站只会为您提供外部 IP 地址。 If you are looking for creating a LAN without internet then you would need to find IP address from the network settings.
如果您正在寻找创建没有互联网的 LAN,那么您需要从网络设置中找到 IP 地址。
如果您进行大量研究,则无法托管 WAN 世界,那么您将获得正确的站点如何托管 WAN 世界
Research <SUCKS>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.