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

CLI and GUI interfaces binding to external IP addresses instead of localhost. #153

Open
IsaacN72 opened this issue Apr 15, 2024 · 1 comment

Comments

@IsaacN72
Copy link

IsaacN72 commented Apr 15, 2024

which version of Holodeck B2B you are using: holodeckb2b-6.1.0/
your operating system: Linux (Ubuntu 18.10)
your Java version: openjdk version "1.8.0_362"
error messages you received:
`java.lang.Exception: Could not connect to Holodeck B2B on port 1701
at org.holodeckb2b.ui.app.gui.HB2BMonitoringApp.main(HB2BMonitoringApp.java:112)
Caused by: java.rmi.ConnectException: Connection refused to host: 1.2.3.4; nested exception is:
java.net.ConnectException: Connection timed out (Connection timed out)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:623)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:116)
at org.holodeckb2b.ui.app.gui.HB2BMonitoringApp.main(HB2BMonitoringApp.java:109)
Caused by: java.net.ConnectException: Connection timed out (Connection timed out)

what you were trying to do and what the problem was you encountered: Attempting to run either cli or GUI monitoring interfaces
was the problem reproducible: Yes
Additional information: The RMI server is running on the default port 1701 (I can telnet to it) however the monitoring applications seem to be attempting to connect to external IP addresses rather than local host. Is there a way to direct the monitoring interfaces to localhost?

@IsaacN72 IsaacN72 changed the title CLI and GUI interfaces binding to external addresses. CLI and GUI interfaces binding to external IP addresses instead of localhost. Apr 15, 2024
@sfieten
Copy link
Collaborator

sfieten commented Aug 1, 2024

I have looked into this but not able to reproduce this issue, so I cannot determine why this fails. But it looks like the RMI client does not use the localhost. Maybe specifying the host explicitly can help to resolve this. We will include this in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants