You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to deploy a static cluster, and when I start the static worker node, I noticed that the IP address saved in the static_workers table is 127.0.0.1.
I noticed that in the CurrentStaticWorker.java,the IP address of the static worker node is obtained using the following method:
However, this does not seem to be a reliable, system-independent method.It attempts to obtain the local IP address by resolving the hostname, and in most cases, the hostname is set to localhost.
I was able to obtain the correct IP address by using the NetworkInterface class. Would it be a better approach to change my system configuration so that localHost.getHostAddress() returns the correct IP address?
The text was updated successfully, but these errors were encountered:
I am attempting to deploy a static cluster, and when I start the static worker node, I noticed that the IP address saved in the static_workers table is 127.0.0.1.
I noticed that in the
CurrentStaticWorker.java
,the IP address of the static worker node is obtained using the following method:However, this does not seem to be a reliable, system-independent method.It attempts to obtain the local IP address by resolving the hostname, and in most cases, the hostname is set to localhost.
I was able to obtain the correct IP address by using the
NetworkInterface
class. Would it be a better approach to change my system configuration so that localHost.getHostAddress() returns the correct IP address?The text was updated successfully, but these errors were encountered: