URX timeout error

I am trying to connect to a UR10e or a UR10 (on a VM simulation) using urx library. On both cases I am getting a “TimeoutError”:

Below is my code

import urx
import time
 host  = "127.0.0.1"
rob = urx.Robot(host)

I don’t think it is a network issue as I successfuly connect using the “URBasic” library.

I looked for this issue, and could find some relative topics without answer. I am trying my luck, does someone have an idea of where the issue comes from? A workaround?