I have a small home server (Ubuntu+XAMPP) and 2 PHP scripts: server.php
and client.php
, which both communicate to each other via sockets.
When I run server.php
/ client.php
on the same machine (localhost
), it works fine. Also, when I run server.php
on the server, and client.php
on the same server but from other local PC (i.e. local_server_ip
/client.php
), all works fine as well.
However, when I run server.php
on the server and client.php
on the other PC on the same network (replacing localhost
with local_server_ip_addr
in the client.php
script), it fails with the actively refused connection
error.
All necessary ports are forwarded in the router. I guess it is kind of security block on XAMPP/Linux and can be eliminated by some configuration file. I replaced Deny from all
in the New XAMPP security concept
with Allow from all
in httpd-xamp.conf
file, but it still fails.
Any help would be much appreciated.
(PS: server/client scripts examples taken from http://i-novice.net/sokety-v-php/ )
UPD: Have modified port 8080 (the one is dedicated for sockets in my system) to XXXXX. All works fine!