Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Java Gurux Server Fails To Respond With Ipv6

java gurux server fails to respond with ipv6

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By csulb , 4 May, 2021
Forums
Gurux DLMS for Java

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 ?

Profile picture for user Kurumi

Kurumi

5 years 1 month ago

Hi,

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

csulb

5 years 1 month ago

Hello,

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

Profile picture for user Kurumi

Kurumi

5 years 1 month ago

Hi,

Hi,

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

BR,
Mikko

csulb

5 years 1 month ago

In reply to Hi, by Kurumi

Thanks

Thanks

csulb

5 years 1 month ago

Hello, have you found time to

Hello, have you found time to do the test ?

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

This is fixed in version 1.0.22.

BR,
Mikko

csulb

5 years ago

Thanks, it does seem to work

Thanks, it does seem to work though when I've tried with the ipv6 localhost (::1) the server was responding on the ipv4 localhost (127.0.0.1)

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

Have you changed gurux.net dependency from 1.0.21 to 1.0.22 in the server pom file?

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin