Details
-
Feature Request
-
Resolution: Duplicate
-
Major
-
2.2.8, 2.2.9, 2.2.9.1, 2.2.9.2, 2.2.9 SP3 (2.2.9.3), 2.3, 2.3 SP1, 2.4
-
None
-
Medium
-
0
-
0%
Description
If -Dbind.address or bind_addr are not set, JGroups picks the NIC to bind sockets to itself. However, especially for ServerSockets, this may not be desirable because we may want to have ServerSockets be able to receive packets through all interfaces, e.g.
- NICs are 192.168.5.2, 192.168.0.2 and 127.0.0.1 (loopback)
- When the bind address is set to 192.168.5.2, a given ServerSocket on port 7500 will only accept packets from this NIC
- If someone connects to 192.168.0.2:7500 or 127.0.0.1:7500, the client will not be able to establish a connection because nobody is listening on those ports on the given NICs
- If bind address was not set, this would be possible
- Affected: FD_SOCK, FD_PING, TCP, TCP_NIO etc
- We need to think about semantics for MulticastSockets where a wildcard address (not setting the bind address) means that the operating system picks the NIC, and not that the MulticastSocket will listen on all interfaces for incoming packets
Attachments
Issue Links
- is related to
-
JGRP-344 Ignore bind address for (receive) sockets
- Resolved