I have a url "
site.mydomain.com" and a public ip address "200.200.100.50" and a private ip address of "192.168.1.2"
I can create a simple site (basic html page) in IIS with the binding set to
site.mydomain.com on port 80 and it works fine (can browse to it with a browser).
So I know that the network is functioning perfectly fine and that it isnt a firewall or incorrect ip address.
But if i stop the IIS site, and have a self hosted XSocket server (console application) with a Configuration of:
public class Configuration1 : ConfigurationSetting
{
}
I get a SocketException when the server is started. It reports the following error:
2015-11-26 17:11:32 [Information] "Starting Endpoint with" { Origin: ["*"], Host: "site.mydomain.com", Port: 80, IsLoopback: False, IsSecure: False, BacklogSize: 20, ThreadPoolSize: 200, CompletionPortThreads: 2, CertificateLocation: LocalMachine, CertificateSubjectDistinguishedName: "cn=localhost", ForceClientCertificate: False }
2015-11-26 17:11:32 [Error] Error in XSocketServer.Start()
System.Net.Sockets.SocketException (0x80004005): An attempt was made to access a socket in a way forbidden by its access permissions at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddresssocketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at XSockets.Core.XSocket.Transport.DefaultTransport.Bind(EndPoint endPoint)
at XSockets.Server.XSocketServer.<Start>d__19.MoveNext()
There does not appear to be any XSockets documentation on this error.
What is going on? This looks to be pretty basic stuff that XSockets is failing with..