We are building dlms server using gurux.dlms.server.example2.java. We are getting "Connection refused: connect" error while giving hostname as below
media = new gurux.net.GXNet(NetworkType.TCP, "localhost",port);
while using media = new gurux.net.GXNet(NetworkType.TCP, port); is working fine.
Please let us know how to run server with different IPv4 and IPv6 addresses.
For me requirement is to have multiple IP addresses on same machine so and I need to run separate server instances for each IP. So that we can simulate 100k meters as in production.
So I need to bind server for particular IP and Port but with
media = new gurux.net.GXNet(NetworkType.TCP, port);
single server is bind to all interfaces.
Hi,
Hi,
Here you make a client connection:
new gurux.net.GXNet(NetworkType.TCP, "localhost",port);
This is server:
media = new gurux.net.GXNet(NetworkType.TCP, port);
If you start it as a server, it'll use IP address where you are running it.
BR,
Mikko
Hi Mikko,
Hi Mikko,
For me requirement is to have multiple IP addresses on same machine so and I need to run separate server instances for each IP. So that we can simulate 100k meters as in production.
So I need to bind server for particular IP and Port but with
media = new gurux.net.GXNet(NetworkType.TCP, port);
single server is bind to all interfaces.
Regards,
Utkarsh