Created
February 8, 2015 06:55
-
-
Save tlockney/1a0dbe6f8bd437b07d5f to your computer and use it in GitHub Desktop.
Get a new random port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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