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. Connect To Multiple Meters In Gprs Connection On Same Ip and Same Port.

Connect to multiple meters in gprs connection on same ip and same port.

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 sc-anokum , 27 July, 2022
Forums
Gurux DLMS for Java

Hi,
I'm trying to connect to several meters simulated on same ip and port, i tried using the server address but it works for first meter and gives invalid tag error for all other subsequent meters.

i've gone through some related questions on forum and found that normally you need to create multiple instances of GXNet, but in my case there's only single ip and single port, do i still need to create multiple instances?

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

There are connection defending settings. For that reason, you need to create own instance from GXDLMSClient for each meter if you try to read multiple meters at the same time. It works better if you also create own instance from GXNet for each meter.

BR,
Mikko

sc-anokum

3 years 10 months ago

But all the GXNet instances

But all the GXNet instances will have same ip and host, and media.open() will establish connection to the same server everytime, isn't it redundant.
I've recently started on DLMS, so my concern may seem unfounded.

Also i tried with multiple instances of GXNet and DLMSClient, but am still getting error reading data.

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

It's easier if you open multiple connections for the server (meter). In that way, data that you are receiving from the TCP/IP socket is coming from the same meter.

Otherwise, you need to check who sent this data and forward the received data to the sender.

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