Help for this page

Select Code to Download


  1. or download this
    # If you want to accept connections from any network interface
    server: LocalPort=>9000, Listen=>SOMAXCONN
    ...
    
    client1: PeerAddress=>'server', PeerPort=>9000
    client2: PeerAddress=>'server', PeerPort=>9000
    
  2. or download this
    $ /sbin/ifconfig
    eth1      Link encap:Ethernet  ...     # For an Ethernet adapter
    ...
    lo        Link encap:Local Loopback    # For machine to contact itself
              inet addr:127.0.0.1          # Its IP address
              ...