Skip to content

alexpanov/freeportfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeportfinder

Build Status Maven Central

A micro Java library that does one thing and one thing only: finds a free local port (mainly) for testing purposes.

Finding a free local port is as easy as:

int port = FreePortFinder.findFreeLocalPort();

Which can then be used to set up local Jetty without hitting

java.net.BindException: Address already in use

Contributors

Shlomi Alfasi

About

Find a free local port (mainly) for testing purposes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages