Skip to content

Using pylogix from a container running on a Linux VM #258

Open
@ChristopheLaurent

Description

@ChristopheLaurent

Type of issue

  • Question

Description of issue

I use pylogix in a container deployed with docker compose. It runs within a Linux VM from my windows laptop. My windows laptop has local IP address 192.168.1.156 with mask 255.255.0.0 and the PLCs have address 192.168.22.10, 192.168.20.10, 192.168.23.10 and 192.168.24.10.
I can read the tags of these PLCs without any problem but I cannot discover the PLCs automatically.
I slightly modified the discover() method in lgx_comm.py to have a better understanding of the issue, adding a couple of traces. I found that discover() method tries to explore the local network from 172.18.0.2 using port 44818, i.e. from the local IP address of the container. I tried to expose the port 44818 for protocol UDP in my container, but it did not help.
I tried to run the same discover() method directly on windows without any container and it works very well.

Does any one already met such an issue with discover() running pylogix in a microservice ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions