0

I'm trying make GlassFish accessible online, but didn't had any success with it. I disabled Windows firewall, just to be sure it doesn't bother anything. I've set up <network-listeners> in domain.xml the following way:

<network-listeners>
    <network-listener port="8080" protocol="http-listener-1" address="-IPcomeshere" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>
    <network-listener port="8181" protocol="http-listener-2" address="-IPcomeshere" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>
    <network-listener port="4848" protocol="admin-listener" address="-IPcomeshere" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
</network-listeners>

I've tried the above with a bunch of ports, but no success. I have a D-link DIR-655 router, I set up the virtual servers list this way:

Virtual Servers List

With this configuration I get the following exception:

java.net.BindException: No free port within range: 8181=com.sun.enterprise.v3.services.impl.monitor.MonitorableSSLSelectorHandler@334e9cde SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@29bb22a0

What am I doing wrong? Any help will be appreciated!

4

2 回答 2

1

我想,你应该试试Port Forwarding。不是virtual server

基本上,它会打开路由器上的这些端口,并将发送到这些端口的数据包重定向到本地机器服务器的端口。

于 2013-12-19T03:08:51.353 回答
0

您的 IP 似乎不太可能,也许是本地 IP?http://www.whatismyip.com/提供您的 IP。

于 2011-12-19T11:18:45.520 回答