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…

I am facing the same issue while trying connection with my custom GCS with ardupilot SITL
I also tried port binding between WSL and GCS
" netsh interface portproxy add v4tov4 listenport=5760 listenaddress=127.0.0.1 connectport=5760 connectaddress=172.19. . . "
you can try this ,( it didn’t work for me)
Later i changed the port number from 5760 to 5761
" sudo ./bin/arducopter --model hexa --base-port 5761" (it worked for me)