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. Connection Between Client and Server In C

Connection between client and server in C

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 fernando , 26 May, 2020
Forums
Gurux.DLMS

Hello, I have a problem.

I have the client and server correctly compiled in 2 separate virtual machines (virtualBox).
I run the server. When I run the client with the command: ./bin/gurux.dlms.client.bin -h 192.168.56.101 -p 4061. I get this problem: Connection failed: 111, Connection refused Error. 258.
But with the Gurux Director it does connect correctly and reads the objects.
I don't know why. Could you help me?

Thank you very much.
Fernando

Profile picture for user Kurumi

Kurumi

6 years ago

Hi Fernando,

Hi Fernando,

Do you have firewall, etc that might block the connection?
For some reason TCP/IP connection fails.

BR,
Mikko

fernando

6 years ago

No, I don't have anything

No, I don't have anything activated that can block my connection.
I do not understand what can be.
if i have the client and server on the same machine it works fine.

Thanks you,
Fernando

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

Can you ping the server from the client PC? Check the firewall. It's VERY common that firewall is blocking the connection or your virtual meters are in different TCP/IP networks and can't see each other.

BR,
Mikko

fernando

6 years ago

Yes I can.

Yes I can.
It is true, something is blocking the connection. We have tested it with 2 raspberry pi and it works correctly.
I'm going to check the firewall, and If I find the problem I will report it.

Thanks you.
Fernando.

  • 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