0

Hello everyone I m using a runing python server on my local machine at 127.0.0.1:502 and i am trying to connect with it by using a php client in docker container i keep getting the error Unable to create client socket to tcp://127.0.0.1:502: Connection refused in /app/vendor/aldas/modbus-tcp-client/src/Network/InternetDomainStreamCreator.php on line 50 but when i run that script from my local machine it works perfecly with the server . How can I connect my docker compose to the local machine and connect the php client from docker container with the python server on my local machine ? Thank you . Here is my docker-compose.yml:

0 Answers0