On Wed, Sep 8, 2010 at 8:36 PM, Michael C. Robinson
<[email protected]> wrote:
> How do you limit the IPv4 addresses that Net::EasyTCP binds to in server
> mode?
>
> I don't want it to bind to 0.0.0.0 2345 for example for security
> reasons.

Just add the host to the server side as an IP address, just like the
client example.
       $client = new Net::EasyTCP(
                mode            =>      "client",
                host            =>      'localhost',

http://search.cpan.org/~mnaguib/EasyTCP-0.26/EasyTCP.pm
>
> I prefer for example 192.168.5.500 2345.
>
> Is limiting in server mode to one IP address possible?

The host being left out of the server says to listen on any ip/interface.
If you want to listen on only one then specify only one IP address.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to