I have a small Client-Server application. First the Server Binds to IPAddress.Any and a Port say 8221 and then Listens and waits.
Then the Client connects to the Server and they both communicate.
Communication is simple:
Server has 3 buttons. B1 to Bind and Listen and when the client connects B2 sends a ''Hi'' to the client and B3 sends a "Bye"
When I run the client and server on 2 separate machines (ofcourse connected to the same wireless network) the communication takes place good.
Now I have bought a Domain Name say xyz.com with an own Dedicated IPAddress and is hosted on a NameServer (I am using ixwebhosting).
So I have a Server running on the above domain with is own IP. When I open my page [www.xyz.com/server.aspx](www.xyz.com/server.aspx) I see the 3 buttons. I click B1 and my server binds to the a IP (IPAddress.Any, Port:8221) and waits. Now I have this client but when I try to connect to the Server's IP with port 8221 I get an SocketException ( A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Server's IP:8221 )
I think I am missing something. I read the post about Port Forwarding as well but I am clear about how do I use it in my case.
Any help would be appreciated.
Thank you in advance.