websockets not working in virtual machine

1

I am trying to work with websockets in linux virtual machine(with virtual box). Connection to echo.websocket.org from HOST-OS works, but fails from Guest-OS. My system config-:

Host-OS----windows 7

guest-Os----ubuntu 12.04

network config - NAT

Should I change the network configuration?

ashwinids

Posted 2015-01-09T12:07:07.547

Reputation: 137

Change the network configuration to BRIDGED mode and see if it works for you. This will place the ubuntu host on the same network as your windows host. – Optichip – 2015-01-09T12:51:05.133

@Optichip thanks for replying. After changing NAT to BRIDGED ADAPTER, i can't open even google.com. In bridged configuration i have set adapter to Ethernet controller(only available option) and promiscuous mode to ALLOW VMs. – ashwinids – 2015-01-09T14:02:57.230

You shouldn't have to change your networking mode if you're just trying to access an external website like webcoket.org. You said it fails, how does it fail? Are you trying to access it from a browser? Which browser? Which version? What error message do you get back? – heavyd – 2015-01-09T20:02:52.957

@heavyd There is a test for websocket on www.websocket.org. It is failing that test.link. It says Error undefined. I'm working on firefox 25 which supports websocket.

– ashwinids – 2015-01-10T09:29:03.380

No answers