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. GXNet.Open() Parallel Connection Are Not Allowing

GXNet.Open() parallel connection are not allowing

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 Goutam , 2 May, 2018
Forums
Gurux.Net

Hi,

We are getting following exception at the line GXNet.Open() when trying to parallel connect to the different IP and port using Gurux Net. Only two connection are allowing at time but rest of them are throwing following exception.

Error: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied

Note: Different thread create new instance of media(Gurux.Net) and connect to respective IP and port.

Profile picture for user Kurumi

Kurumi

8 years 1 month ago

GXNet.Open() parallel connection are not allowing

Hi,

Server can't handle more than two connections at the same time.

BR,

Mikko

Goutam

8 years 1 month ago

GXNet.Open() parallel connection are not allowing

Hi,

Another third party application, simultaneously connecting to the different IP and ports at the same time.
Now we are implementing Gurux and getting above exception.

So , I think is not the issue of "Server can't handle more than two connections at the same time".

Could you please suggest me any others solution.

Profile picture for user Kurumi

Kurumi

8 years 1 month ago

GXNet.Open() parallel connection are not allowing

Hi,

Are there multiple connections open at the same time in the other app?
Or, is app reading one meter at the time?

Test this using same server IP and port than the other app.

It might be that server is config differently.

BR,
Mikko

Goutam

8 years 1 month ago

GXNet.Open() parallel connection are not allowing

Hi,

We able to connect to different meters (with different IP & Port ) using system socket class object
using parallel connection at the same time.

But on the other side we are not able to connect to same meter set using GXNet.

GXNet Code
-----------
GXNet media = new GXNet();
media.Protocol = NetworkType.Tcp;
media.HostName ="xxx.xxx.xx.xxx";
media.Port=10001;
media.Open();

Normal System Socket
-----------
System.Net.Sockets.Socket socket=new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
System.Net.IPEndPoint ed = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("xxx.xxx.xx.xxx"), Port);
socket.Connect(ed);

Here I posted code from both approach of mine.
Could you please suggest what is missing in GXNet code.

  • 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