java gurux server fails to respond with ipv6

5 posts / 0 new
Last post
csulb
java gurux server fails to respond with ipv6

Hello

I have a gurux server based on the example 2, I'm using the python gurux library in order to query it, it works flawlessly when I'm using ipv4 but as soon as I try to query the server using ipv6 I get this error on the server side "java.io.IOException: Invalid argument (sendto failed)"
Is there something specific to be able to have a server use ipv6 ? Did I miss something ?

Kurumi
Kurumi's picture

Hi,

I just test this and worked without problems.
I used Java server and Python client with command line parameters:
-h fe80::79a4:6eb5:561e:743d%5 -p 4061 -t Verbose

Check that your gurux.net version is 1.0.21 in pom.xml

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

csulb

Hello,

Did you try using UDP ? It's basically the only diff between the reference example and the one I'm using
in GXDLMSBase.java:
134c134
< media = new gurux.net.GXNet(NetworkType.TCP, port);
---
> media = new gurux.net.GXNet(NetworkType.UDP, port);

BR

Kurumi
Kurumi's picture

Hi,

I was using TCP/IP. I'll check this.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

csulb

Thanks