SITL with Mission Planner and X-Plane11

I have Windows 10 and WSL Ubuntu in my computer. I want to use SITL with Mission Planner and X-Plane11, but I want to run this simulation with my custom ardupilot. I followed the instructions in this link under the topic “Using SITL With Your Own GCS”. But after this instructions, I get this:


Mission Planner counts down until connect, and at the end, it can’t connect and ubuntu terminal says:

Closed connection on serial port 0

What can I do to connect Mission Planner, X-Plane 11 and my custom ardupilot SITL without any kind of problem?

Any help would be appreciated…