iiwa_stack
iiwa_stack copied to clipboard
Connection for kuka cannot assign requested address: 172.31.1.50, port:1234
I am using this command 'rosrun kuka_controller server_V30032017.py' I receive this error.

Hello, I have the exact same problem as yours. And somehow I solved it. Maybe this information can help you, or someone else who finds this issue.
I am using WSL2 Ubuntu 20.04, Mirrored mode networking. Here is the content of my .wslconfig:
# Settings apply across all Linux distros running on WSL 2
[wsl2]
networkingMode=mirrored
ignoredPorts=1234
On Windows, manually set the IP address to 172.31.1.50 and the subnet mask to 255.255.0.0.
On Ubuntu, execute sudo ufw allow 1234
After these configurations, rosrun kuka server_V30032017.py usually works fine. But this problem still occurs occasionally, and I don't know why.