如何通过互联网使我的本地主机可用 [英] How to make my localhost available over internet

查看:28
本文介绍了如何通过互联网使我的本地主机可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地机器上的 JBoss 上托管了一个应用程序,我也可以通过本地主机或通过我的 IP 访问.

I have hosted an application on JBoss on my local machine and I can access by localhost or over my IP also.

现在我希望其他用户通过我的 IP 通过互联网访问相同的应用程序.

Now I want the same application to be accessed by other users over the internet by my IP.

你能告诉我如何配置我的 JBoss 来处理这些请求吗?

Could you let me know how to configure my JBoss to server these requests?

推荐答案

http://showoff.io 是最简单的通过 Web 访问 localhost 的方法.它需要 rubyruby gem 'showoff-io'.

http://showoff.io is the easiest way to access localhost over the web. It requires ruby and ruby gem 'showoff-io'.

$ gem install showoff-io

将您的网站实例映射到本地主机端口,即 localhost:9090.然后运行:

Map the instance of your website to a localhost port i.e., localhost:9090. Then run:

$ show 9090

或者只需按照 showoff.io 网站上显示的说明进行操作.

Or simply follow the instructions shown on showoff.io website.

更新:showoff.io 现在被称为 forward

UPDATE: showoff.io is now known as forward

这篇关于如何通过互联网使我的本地主机可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆