Skip to content

Commit cffe626

Browse files
author
UnKabaraQuiDev
committed
P4JClient: Using wildcard address instead of localhost
1 parent 7e12291 commit cffe626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/lu/pcy113/p4j/socket/client/P4JClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void bind() throws IOException {
9696
* @throws IOException if the {@link Socket} cannot be created or bound
9797
*/
9898
public void bind(int port) throws IOException {
99-
bind(new InetSocketAddress(InetAddress.getLocalHost(), port));
99+
bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), port));
100100
}
101101

102102
/**

0 commit comments

Comments
 (0)