通过 WLAN IP 暴露在我的 PC 本地主机上运行的 kubernetes 服务容器,以启用另一台 PC 与同一路由器上的两台 PC 的连接
我的 PC 上有一个本地运行的 k8s 服务并且工作正常。 数据库和服务。一切正常,可以通过我的浏览器和邮递员上的本地主机访问。 但是,我希望能够通过同一路由器/互联网上的其他 PC/移动应用程序连接到它。 所以,我尝试过端口转发,并且尝试使用映射 netsh 接口 portproxy add v4tov4 Listenport=8014 Listenaddress=0.0.0.0 connectport=8014 connectaddress=172.18.xx.xx 但还没有运气。 我的问题是“这可能吗,还是我只是在浪费时间?”。我已经为此花费了 5 天的时间,但我不确定这是否可能。 请提供任何线索或解决方案,我们将不胜感激。
I have a k8s service running on my PC locally and works fine.
The Database and the services. everything works fine and are accessible via localhost on my browser and postman.
However, I want to be able to connect to it via other PC/mobile app on the same router/internet.
So, I have tried port forwarding, and I've tried mapping using
netsh interface portproxy add v4tov4 listenport=8014 listenaddress=0.0.0.0 connectport=8014 connectaddress=172.18.xx.xx
But no luck yet.
My question is that "Is this possible or am I just wasting my time?". I have spent up to 5 days on this already and I'm not sure if it is possible or not.
Please any lead or solution will be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试监听
127.0.0.1
,或者完全删除listenaddress
,这应该使其默认为localhost
。Try listening on
127.0.0.1
, or completely remove thelistenaddress
which should make it default tolocalhost
.