question

DanielMarinucci-1765 avatar image
0 Votes"
DanielMarinucci-1765 asked msrini-MSFT answered

Support request on Azure VM

we created a Win 10 virtual machine on our Microsoft Azure cloud space.
On this VM we are running a windows application .net, which exposes a Websocket server listening on custom port 4649.
We are experiencing the following problem:
if we try to connect to the websocket server from a client websocket running on that same VM, the connection is successful, on the other hand if the client resides on a remote machine the connection fails.

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

msrini-MSFT avatar image
0 Votes"
msrini-MSFT answered

Hi,

If you are trying to access the VM using its public IP and connecting to a specific TCP/UDP port, then you need to whitelist the port on the Network Security Group which is attached to the NIC of the VM or on the subnet of the VM.

You need to add an inbound rule to allow traffic from any source to destination of your VM on port 4649.

Regards,
Msirni

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.