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. 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 2 months 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 2 months 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 2 months 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 2 months 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

  • 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

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • 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
More

Who's new

  • Tyronesok
  • Dawley07
  • nostra
  • cuiVEAwINCoyynjjn
  • qlMlMNfbqjNumKgGFIo
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin