Skip to main content
Home
for DLMS smart meters

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

3 weeks 5 days 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

3 weeks 5 days 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

3 weeks 4 days 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

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Landisgyr meter
  • GxDateTime always return DayOfWeek as FF
  • Asynchronous support in Gurux DLMS stack (.NET)?
  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin