Self hosted wcf service on azure vm windows server Self hosted wcf service on azure vm windows server azure azure

Self hosted wcf service on azure vm windows server


Try changing the Azure VM Endpoint public port from 39901 to 443!

A hell lot of sys-admins and ISPs block all outgoing ports, and only allow few (outgoing port white listing). Port 80 and 443 are usually never blocked because it is usually HTTP traffic.

Change only the public port for the VM Endpoint. Leave the private port as is - 39901.


Your configuration file seems to have a few issues:

The service behavior is missing a name:

  <serviceBehaviors>        <behavior name="my.service.behavior"> ...

The service needs to reflect the binding configuration

<service name="ServerService.UdpServiceAlpha" behaviorConfiguration=" my.service.behavior ">


Yeah, finally... got the solution for this. My friend (network big boss :) ) told me how port communication works... Idea was simple: "check once again server and client firewall ports", and here is that point "client firewall".

I allowed only server firewall ports, but there should be allowed communication for client. Added TCP/UDP Outbound rule in client PC and it works magically.

... and for UDP I needed to change TTL (default is 1).