I am using client - server software called XSockets. I can run it on my local computer, but I cannot on my web server. This is my home configuration (win7 IIS7):
myDomainName.com points directly at 184.108.40.206(lets say my home IP ;)). Now 220.127.116.11 is my local router, that DMZ's everything to my local computer, which is 192.168.0.10.
Now, when I setup my local XSockets server to listen on 192.168.0.10 (I doesn't fully understand why I need to explicitly specify that, but let's omit that, the question is not about that) everything works as intended, and by that I mean, that I can go to https://myDomainName.com and everything works fine.
Important note: as you can see above, I am accessing my page from within https:// protocol - that is required for my configuration, it cannot be plain http:// (I am pointing this out because maybe this has something to do with my problem).
Now here is the problem: I am setting up the same configuration on my web server (win2008 R2 IIS7.5), the only difference is, that my server has myServerDomain.com with ip 18.104.22.168 pointing directly at the server (no nat here, no LAN ip), so I am setting XSockets to listen at 22.214.171.124. This does not work for me at all.
- Obviously - why it is not working? Am I maybe missing some IP configuration at my server?
- How can I debug this out?
- What is the difference between having a LAN IP and having a public IP? I mean of course, in my case, because my point of view is, that since 192.168.0.10 points to my local PC, then the server is working fine, since it is running on that PC. So, as for me, it is logical, that if there is no LAN, then 126.96.36.199 should work as my PC address, so the app should work too. Right?
Edit: Of course firewall is not the case - I was testing everything with firewall turned off completely.
Edit2: I was reading my post and I thought that I need to share some more info about that - First of all, XSockets is a WebSocket framework, I have almost successfuly integrated it with my website (that runs on 188.8.131.52). As I mentioned above, I need to use https, that's because XSockets are working on plain ws:// protocol without a problem (with 184.108.40.206 in setup). The problem begins, when I try to use wss:// with 220.127.116.11. https:// on my server works fine (and to be clear - https:// with wss:// are working fine also on my local pc - 192.168.0.10). So every configuration is working but wss:// on my server.