I have a simple chat written in java. I launched the server for it on Linux, and the client connects from a computer to windows. If I enter a local ip to connect to ServerSocket, then everything works, but if I try to connect via the Internet using an external ip and another computer, the connection does not work. (there is still a site on the server that can be opened via external ip). Tell me, is it even possible to connect to such a chat via the Internet?
|
1 answer
You must have ports routed to the server with a chat on the router. You can read about port forwarding here: http://www.dlink.ru/u/faq/246/1156.html
- Added redirection in the router and it all worked! - Maxim Freud
|
serverIp:serverPort. Maybe there is no network, maybe it blocks the firewall (incoming connection or the server socket itself) - this is already a must see. - Regent