fuchanghai opened a new issue, #11636: URL: https://github.com/apache/dolphinscheduler/issues/11636
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description ## One network card has two ips displayName of eth1: ``` eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 52:54:00:75:0d:7a brd ff:ff:ff:ff:ff:ff inet 172.31.252.109/23 scope global eth1 valid_lft forever preferred_lft forever inet 172.16.98.30/24 scope global eth1 valid_lft forever preferred_lft forever ``` ### Use case - i want to specify ip - update codes in method of getLocalAddress0 ```java private static synchronized InetAddress getLocalAddress0() { if (null != LOCAL_ADDRESS) { return LOCAL_ADDRESS; } InetAddress localAddress = null; String networkIp = PropertyUtils.getString(Constants.DOLPHIN_SCHEDULER_NETWORK_IP); if(StringUtils.isNotBlank(networkIp)){ try { localAddress = InetAddress.getByName(networkIp); return localAddress; } catch (UnknownHostException e) { e.printStackTrace(); } } ``` ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
