Simple Java Client/Server Program

It’s probably a firewall issue. Make sure you port forward the port you want to connect to on the server side. localhost maps directly to an ip and also moves through your network stack. You’re changing some text in your code but the way your program is working is fundamentally the same.

Leave a Comment