agents jade - how to change java listening interface from localhost to IP address? -
as title mention, how can change java listening interface localhost ip address. since command netstat -tulpn
shows:
tcp 0 0 127.0.0.1:7778 0.0.0.0:* listen 23958/java
i want change 127.0.0.1 example 192.168.1.1 without using sockets, example specify in java configuration files or in jade files.
i want in order make port reachable allow migration of mobile agent remote machine machine.
for have listener address other loopback/localhost address, there has available network interface listen on. if don't have additional network adapters on machine don't see how you're going accomplish task.
if have additional network adapters, use networkinterface.getnetworkinterfaces() available adapters machine has offer , pick want want set listener to.
this thread should give insight on getting available network adapters. how enumerate ip addresses of enabled nic cards java?
if you're wanting use localhost listener, because have apps on local machine need talk server, why using loopback address not option you?
Comments
Post a Comment