This role is applied automatically when the Net::BitTorrent::DHT constructor is called without a blessed Net::BitTorrent object in the client parameter. For API documentation, see Net::BitTorrent::DHT.

Standalone DHT nodes may be useful for statistical purposes.


Aside from the public constructornew( )">, the API Net::BitTorrent::DHT::Standalone is exactly the same as the Net::BitTorrent::DHT.

Net::BitTorrent::DHT->new( )

This creates a new standalone DHT node. Random ports will be opened to incoming UDP connections via IPv4 and IPv6.

    use Net::BitTorrent::DHT;
    my $node = Net::BitTorrent::DHT->new( );


Sanko Robinson <> -


License and Legal

Copyright (C) 2008-2010 by Sanko Robinson <>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.

Neither this module nor the Author is affiliated with BitTorrent, Inc.