iiwa_stack icon indicating copy to clipboard operation
iiwa_stack copied to clipboard

Connection for kuka cannot assign requested address: 172.31.1.50, port:1234

Open mf093087 opened this issue 4 years ago • 1 comments

I am using this command 'rosrun kuka_controller server_V30032017.py' I receive this error.

image

mf093087 avatar Sep 03 '21 11:09 mf093087

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.

Narukara avatar Aug 13 '24 03:08 Narukara