I develop a chat (server and client) using Sockets. It's working on LAN but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. My address is public - a friend pinged my address successfully. You find everywhere examples and code for chat applications - but only over local network.
What's the problem? How can my chat work over the Internet? (I can post code if necesarry).
Please help me. I need this so much!