Skip to main content

freeport 2.0.0 copy "freeport: ^2.0.0" to clipboard
freeport: ^2.0.0 copied to clipboard

A small, dependency-free Dart library for finding available TCP ports, with ordered preferred ports and hostname support.

example/main.dart

import 'package:freeport/freeport.dart';

Future<void> main() async {
  final port = await freePort(preferred: [8080, 8081]);
  print('Free port: $port');
}
3
likes
160
points
833
downloads

Documentation

Documentation
API reference

Publisher

verified publishermedz.dev

Weekly Downloads

A small, dependency-free Dart library for finding available TCP ports, with ordered preferred ports and hostname support.

Repository (GitHub)
View/report issues

Topics

#network #port #socket #utility

Funding

Consider supporting this project:

github.com

License

MIT (license)

More

Packages that depend on freeport