Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind a configured network interface for gossip server endpoint. #16986

Open
Tracked by #16985
edward-swirldslabs opened this issue Dec 7, 2024 · 0 comments · May be fixed by #16987
Open
Tracked by #16985

bind a configured network interface for gossip server endpoint. #16986

edward-swirldslabs opened this issue Dec 7, 2024 · 0 comments · May be fixed by #16987
Assignees
Labels
Platform Tickets pertaining to the platform

Comments

@edward-swirldslabs
Copy link
Contributor

edward-swirldslabs commented Dec 7, 2024

Background

Through configuration we need to specify a specific network interface to bind. Many machines will have multiple interfaces and it may be appropriate that only a particular interface should be bound to receive incoming gossip connections.

The configuration should allow the specification of a hostname and port to bind to. The hostname is a string that must be parseable into a Java InetAddress. The port must be an integer value.

Add the new configuration to SocketConfiguration. socket.bindInterfaceHostname and socket.bindInterfacePort.

Acceptance Criteria

  • Create SocketFactory unit tests which validates the configuration based successful binding of all 3 local host names 127.0.0.1 (IPV4), localhost (Domain Name) , and 0:0:0:0:0:0:0:1 or ::1 (IPV6) instead of the default 0.0.0.0 which is all interfaces.
  • Manually test a local network with the configuration set.
@edward-swirldslabs edward-swirldslabs added the Platform Tickets pertaining to the platform label Dec 7, 2024
@edward-swirldslabs edward-swirldslabs linked a pull request Dec 7, 2024 that will close this issue
2 tasks
@edward-swirldslabs edward-swirldslabs self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Tickets pertaining to the platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant