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. DLMS Client–Server Communication Over GPRS Fails With Dynamic IP

DLMS Client–Server Communication Over GPRS Fails With Dynamic IP

By Harshi_554 , 20 January, 2026
Forums
Gurux.Net

I need to simulate a DLMS meter using DLMS server application using C and GPRS communication. I have compiled the source code without any errors.

I tried to run DLMS client application(python) and DLMS server application(C) in two different boards. But the connection establishment is failing. Can you guide me on how to establish connection between client and server using GPRS?
Dynamic IP address is assigned on both boards.

Im getting following error when I tried to read the data from other board (meter simulator)

Gurux.DLMS.Client.Example.python# python3 main.py -h 10.95.187.119 -p 4063 -r ln -c 16 -s 1 -a None -i WRAPPER
gurux_dlms version: 1.0.181
gurux_net version: 1.0.22
gurux_serial version: 1.0.2
Authentication: 0
ClientAddress: 0x10
ServerAddress: 0x1
Traceback (most recent call last):
File "/home/root/DCU/Gurux.DLMS.Client.Example.python/main.py", line 108, in main
settings.media.open()
File "/usr/lib/python3.11/site-packages/gurux_net/GXNet.py", line 312, in open
raise e
File "/usr/lib/python3.11/site-packages/gurux_net/GXNet.py", line 298, in open
self.__socket.connect((self.__host_name, self.__port))
TimeoutError: [Errno 110] Connection timed out
Ended. Press any key to continue.

Profile picture for user Kurumi

Kurumi

6 months 1 week ago

Hi, Is the meter using…

Hi,

Is the meter using dynamic or static IP addresses?
If the meter is using a dynamic IP address, the client can't establish a connection to the meter, and the meter must start the connection. You can read more from here:

https://www.gurux.fi/Gurux.DLMS.DynamicIP

BR,
Mikko

Harshi_554

6 months 1 week ago

Hi Mikko, I’m looking to…

Hi Mikko,

I’m looking to simulate a meter over a GPRS connection with a dynamic IP. Could you please suggest which gurux example is best suited for this use case?

Profile picture for user Kurumi

Kurumi

6 months 1 week ago

Hi, You can use the Net…

Hi,

You can use the Net simulator, but you need to add the auto-connect logic that connects to the desired IP address.

https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSAutoConnect

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • 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

New forum topics

  • 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
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin