# Using PLECS via Python in WSL

**URL:** <https://forum.plexim.com/t/using-plecs-via-python-in-wsl/2945>\
**Category:** General\
**Created:** [March 26, 2026, 2:43pm UTC](https://forum.plexim.com/t/using-plecs-via-python-in-wsl/2945 "2026-03-26T14:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESA](https://avatars.discourse-cdn.com/v4/letter/e/f0a364/32.png) [@ESA](https://forum.plexim.com/u/ESA)\
**Post date:** [March 26, 2026, 2:43pm UTC](https://forum.plexim.com/t/using-plecs-via-python-in-wsl/2945/1 "2026-03-26T14:43:39Z")

</div>

Hello,

I am trying to run PLECS from Python, but I am facing an issue related to my setup. My Python code is running in WSL (Windows Subsystem for Linux), while PLECS is installed and running on Windows.

From the documentation, I understand that JSON/XML-RPC connections to PLECS are only allowed from clients running on the same machine. However, WSL appears to be treated as a separate machine, which prevents the connection from working.

Is there a recommended way to run PLECS running on Windows from a Python environment in WSL?

Any guidance or suggestions would be greatly appreciated.

Thank you !

---

<div class="post-metadata">

**Author:** ![RetoChristen](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/retochristen/32/1225_2.png) [@RetoChristen](https://forum.plexim.com/u/RetoChristen)\
**Post date:** [April 8, 2026, 11:37am UTC](https://forum.plexim.com/t/using-plecs-via-python-in-wsl/2945/2 "2026-04-08T11:37:10Z")

</div>

The only recommended and supported way to use the PLECS RPC interface is from localhost. For that reason, I suggest installing Python for Windows so you can access the PLECS RPC interface directly.
