in reply to Socket programm
which is on different machine and which it is not even connected to.
What do you mean by "not even connected to"?
accept accepts waits for a connection. It can come from any machine unless you tell it otherwise.
As I've already explained, you are telling it otherwise with LocalHost => 'localhost'. You're telling your server to only listen for connections coming on the loopback adapter, and only clients on the local machine can reach that adapter.
Get rid of LocalHost => 'localhost'.
|
|---|