Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tlockney
Created February 8, 2015 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlockney/1a0dbe6f8bd437b07d5f to your computer and use it in GitHub Desktop.
Save tlockney/1a0dbe6f8bd437b07d5f to your computer and use it in GitHub Desktop.
Get a new random port
lazy val port = new ServerSocket(0).getLocalPort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment