I am getting a bit desperate after hours of research:
A Windows 7 computer with a local PHP application that listens to port 12345 with a socket.
From the same Windows 7:
- If I do telnet localhost 12345, the php code sees the connection.
- If I do telnet 127.0.0.1 12345, the php code sees the connection.
- If I do telnet <local_ip_address> 12345, the php code DOES NOT see the connection.
- If I do telnet <dns_name> 12345, the php code DOES NOT see the connection.
From another machine I don’t have any connection at all when I use the ip or the dns address.
Doing a telnet from another machine with the same address but on ports 80 or 21 work perfectly.
Even with the local firewall / antivirus disabled I get the same result.
I am using a standard Apple TimeCapsule as access point, but not configured specially, not sure if that can influence for ports > 1024…
Would you have any idea for me ?
Thanks !
There are really 2 options to get this behavior that I can see;
I’d have a look at your local binding, aka the address you give to
socket_bind().If it says “127.0.0.1”, change it to 0.