使用AWS放大时,如何获得主机IP
我制作了一个React Web应用程序,并使用AWS放大了它。除了托管网站外,主机还运行PEERJS服务器,以便客户端可以使用对等连接。问题在于,为了使对等式连接到PEERJS服务器,它需要服务器正在运行的IP地址。
那么如何获得主机的IP地址?
I made a React web app and deployed it using AWS Amplify. In addition to hosting the website the host is also running a peerjs server so that the clients can use peer-to-peer connection. The problem is that in order for a peer to connect to the peerjs server it needs the IP address that the server is running on.
So how can I get the host's IP address?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论