in reply to How do I bind to a particular Interface ?
the $host is the IP of the interface you want and the $port is the port number you want the service to run....use IO::Scoket; $socket= new IO::Socket( LocalAddr=>$host, LocalPort=>$port, ..... #other arguments ) or die "socket not created\n";
|
---|
In Section
Seekers of Perl Wisdom