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 2 months 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 2 months 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 2 months ago

Hi,

Hi,

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

BR,
Mikko

csulb

5 years 2 months ago

In reply to Hi, by Kurumi

Thanks

Thanks

csulb

5 years 2 months ago

Hello, have you found time to

Hello, have you found time to do the test ?

Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi,

Hi,

This is fixed in version 1.0.22.

BR,
Mikko

csulb

5 years 1 month 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 1 month 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

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Dawsontot
  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
  • annoyingconsultants
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin