Skip to content

Commit

Permalink
Merge pull request #8 from DangerPete/master
Browse files Browse the repository at this point in the history
Switched PortUtil to use getLoopbackAddress
  • Loading branch information
tootedom authored May 19, 2020
2 parents 5df381d + a97b280 commit 746e974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class PortUtil {
public static ServerSocket findFreePort() {
ServerSocket server = null;
try {
server = new ServerSocket(0,1000, InetAddress.getLocalHost());
server = new ServerSocket(0,1000, InetAddress.getLoopbackAddress());
server.setReuseAddress(true);
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit 746e974

Please sign in to comment.