|
Posted by DJ Craig on 09/15/05 15:27
This command works on my home computer:
if($locsock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) echo
"Socket created\n";
My home computer is running Mac OS X, and is on a small LAN behind a
NAT router with a hardware firewall (no software firewall). I tried to
execute the same command on a school computer. It's running XP Pro and
is on a large LAN behind a NAT router and a (very overprotective)
hardware firewall. It's also running "Microsoft Firewall Client for
ISA Server".
Both computers are running PHP 5.05. Heres what I get when I run the
program on the XP computer:
Fatal error: Call to undefined function socket_create() in
E:\client.php on line 4
The schools firewall blocks all outgoing and incoming traffic on all
ports except for 80 (at least all the ones that I've tried) but all I'm
trying to do it make a connection to localhost (127.0.0.1) on port 23.
The hardware firewall shouldn't be able to stop computers inside the
LAN from connecting to themselves, should it? So does that mean it
must be the software firewall that is stopping me? Does anyone know of
a way I can get this to work? I've posted the whole program source
code (its not long) at:
http://www.rascalsteencenter.com/client.txt
Navigation:
[Reply to this message]
|