I have set up the ServiceBus Queue within the virtual machine. When the sample client code runs within the VM, it work fine. However, if I tried to run the code from my host machine to connect to ServiceBus set up on VM I get the error: "the token provider was unable to provide a security token while accessing... ".
My host machine belong to a domain. The VM is just a workgroup. The connection string is built as
Endpoint=sb://WIN-LH8V8RAM74J/MSExample;StsEndpoint=https://WIN-LH8V8RAM74J:9355/MSExample;RuntimePort=9354;ManagementPort=9355;WindowsUsername=IFVMWDEV;WindowsDomain=WIN-LH8V8RAM74J;WindowsPassword=MyPassword