From 567e28f5d6aafefe45f59f5b56cb7b78a2c61cde Mon Sep 17 00:00:00 2001 From: mehmetkr-31 Date: Sun, 10 May 2026 20:06:38 +0300 Subject: [PATCH] fix: add HOST_IP support to nethermind entrypoint The geth entrypoint already supports HOST_IP via --nat=extip, but the nethermind entrypoint ignores it entirely. This causes peer connectivity issues for operators running the nethermind client. Add the same conditional logic to pass --Network.ExternalIp when HOST_IP is set, aligning nethermind behavior with geth. --- nethermind/nethermind-entrypoint | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nethermind/nethermind-entrypoint b/nethermind/nethermind-entrypoint index 66367b22c..48d5b877c 100755 --- a/nethermind/nethermind-entrypoint +++ b/nethermind/nethermind-entrypoint @@ -42,6 +42,10 @@ if [[ -n "${OP_NETHERMIND_ETHSTATS_ENDPOINT:-}" ]]; then ADDITIONAL_ARGS="$ADDITIONAL_ARGS --EthStats.NodeName=${OP_NETHERMIND_ETHSTATS_NODE_NAME:-NethermindNode} --EthStats.Endpoint=$OP_NETHERMIND_ETHSTATS_ENDPOINT" fi +if [ "${HOST_IP:+x}" = x ]; then + ADDITIONAL_ARGS="$ADDITIONAL_ARGS --Network.ExternalIp=$HOST_IP" +fi + # Execute Nethermind exec ./nethermind \ --config="$OP_NODE_NETWORK" \