I have installed Ubuntu 20.04 under Windows Subsystem Linux 2 and I want to perform some remote debugging with IDA Pro.

As with other VMs I have used, I can perform remote debugging when send the executable linux_server and linux_server64 to the VM and execute them. However, in WSL instance, when I run the server and use correct port and IP, there is still connection from IDA Pro to the VM, however, I kept receive this error:

In WSL instance:

IDA Linux 64-bit remote debug server(ST) v7.7.27. Hex-Rays (c) 2004-2022
Listening on
2023-03-01 09:49:40 [1] Accepting connection from
Warning: rpc: bad packet length
2023-03-01 09:49:40 [1] [1] Could not establish the connection
2023-03-01 09:49:40 [1] Closing connection from

In host machine: enter image description here

I am pretty sure that information in setting is true (IP, port, etc.) I have tried to config by allowing port 23946 at WSL instance but it does not work either.

Can anyone help me with this?

1 Answer 1


I do not know it is the issue or not, but when I change to Remote Debugging with Linux Debugger rather than GDB, I could do it well. I do not know sure but I also install Pwndbg along GDB, maybe it could be the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.