访问服务器从本地网络外部在Linux上运行

发布于 2025-02-05 20:58:27 字数 461 浏览 0 评论 0原文

我有一个网站和一个在Linux服务器上运行的Springboot应用程序。我已经在路由器上配置了NAT转发,当我尝试使用IP访问的路由器时,我的路由器显示它可以在连接到Wi-Fi时起作用,但是一旦我切换到移动数据站点不起作用。

我发现我的主路由器被服务提供商锁定,我将LAN电线连接到了我的新路由器,该路由器位于不同的地板上,我可以访问我的新路由器的设置,而不是由我的新路由器的设置。 ISP(Jio)。我想知道是否有办法绕过主路由器并让公众访问我的服务器。

IDK如果可以直接从我的公共IP(我的锁定路由器)路由到我的新路由器。

我的公众像10.7.xx.xx一样,路由器上显示的IP连接到此主路由器,就像192.168.29.xxx

如果没有任何可能的话,我当时想获得OpticFiber转换器,以便我可以直接连接到我的新型新的转换器路由器并使用NAT转发。但是,不确定正常转换器是否可以正常工作,因为Jio提供了主路由器,并且在其中有一些配置。

I have a website and a springboot application running on my Linux server. I have configured nat forwarding on my router and when I try to access it with the ip my router shows it works while I’m connected to Wi-Fi but as soon as I switch to mobile data site doesn’t work.

I found out my main router is locked by the service provider and I had connected a lan wire from that to my new router which is on a different floor and I can access the settings of my new router but not the one which was provided by my isp(jio). I wanted to know if there’s a way to bypass the main router and give public access to my server.

Idk if it’s possible to route from my public ip (which is of my locked router) directly to my new router.

My public is something like 10.7.XX.XX and the ip shown on my router connected to this main router is something like 192.168.29.XXX

If nothing is possible I was thinking of getting a opticfiber converter so I can directly connect to my new router and use nat forwarding. But am not sure if a normal converter would work as the main router was provided by JIO and they have some configuration in that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文