Hi,

We are trying to setup a custom MINA server (configured with spring) on a
machine that has two Network cards.

It's a windows 2003 server. When we start the server, it listens on 0.0.0.0
for some reason. With Microsoft ISA's interface filters, 0.0.0.0 is not an
addressable interface (similar to 127.0.0.1).

Can you please let us know how to bind the server to a different interface
e.g. can it listen on the IP that is exposed to the internet ?


<bean id="minaAcceptor"
   class="org.apache.mina.transport.socket.nio.NioSocketAcceptor"
   init-method="bind" destroy-method="unbind">
   <property name="defaultLocalAddress" value=":1235" />
   <property name="handler" ref="minaHandler" />
   <property name="reuseAddress" value="true" />
   <property name="filterChainBuilder" ref="filterChainBuilder" />
</bean>

Now even if we give something like www.myserver.com:1235  for the
defaultLocalAddress, it still listens on the local host machine  (e.g. the
machine name: SERVER5  ) when we do netstat . Even if port 1235 is open in
the firewall, and the server is listening on it, we cannot get to the server
from the internet.

Any ideas?

Reply via email to