Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: How do I bind to a particular Interface ?

by hnd (Scribe)
on Jun 29, 2009 at 20:54 UTC ( #775814=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I bind to a particular Interface ? - Answer contributed by hnd

use IO::Scoket; $socket= new IO::Socket( LocalAddr=>$host, LocalPort=>$port, ..... #other arguments ) or die "socket not created\n";
the $host is the IP of the interface you want and the $port is the port number you want the service to run....

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-08-23 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (360 votes). Check out past polls.

    Notices?