title: Relay binding not working for Window Server Service Bus 1.1
body: <p>I have installed  Service Bus for Windows Server 1.1 (Not Azure Service Bus) that is having a default namespace.
  I have downloded the sample from 
  <a href="http://code.msdn.microsoft.com/windowsazure/Relayed-Messaging-Bindings-ca039161" rel="nofollow">http://code.msdn.microsoft.com/windowsazure/Relayed-Messaging-Bindings-ca039161</a>
  and change the following code to generate the token.</p>
  
  <pre><code>var machineName = Dns.GetHostEntry(string.Empty).HostName;
          var networkCredential = new NetworkCredential(WindowsUsername, WindowsPassword, WindowsDomain);
  
  
          string serviceNamespace = "ServiceBusDefaultNamespace";
  
  
          // The TransportClientEndpointBehavior specifies the Service Bus credentials for a particular endpoint
          var stsUris = new List&lt;Uri&gt; { new Uri(string.Format(CultureInfo.InvariantCulture, "https://{0}:9355/", machineName)) };
          TransportClientEndpointBehavior relayCredentials = new TransportClientEndpointBehavior
          {
              TokenProvider = TokenProvider.CreateOAuthTokenProvider(stsUris, networkCredential)
          };
  
          //TransportClientEndpointBehavior relayCredentials = new TransportClientEndpointBehavior();
          //relayCredentials.TokenProvider = TokenProvider.CreateSharedSecretTokenProvider(issuerName, issuerSecret);    
  
          Uri address = ServiceBusEnvironment.CreateServiceUri("sb", serviceNamespace, "HelloService");
  </code></pre>
  
  <p>But it is throwing the following error
  "<strong>Unable to reach servicebusdefaultnamespace.servicebus.windows.net via TCP (9351, 9352) or HTTP (80, 443)</strong>"</p>
  
  <p>I have also tried the same sample with BasicHTTPRelayBinding,But that doesn't work. </p>
  
  <p>Do i need to do some other configuration for relay binding 
  Please suggest !!!</p>
  
  <p>Thanks in advance.</p>