From 8f7132807e981231b79d87946a832255e0a0ae5c Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Thu, 14 Sep 2023 12:10:26 +0300 Subject: [PATCH] fix: bind server to 0.0.0.0 for external access --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cb1b5f26..bf2ed607 100644 --- a/src/main.rs +++ b/src/main.rs @@ -335,7 +335,7 @@ async fn main() -> anyhow::Result<()> { let hardhat = HardhatNamespaceImpl::new(node.get_inner()); let threads = build_json_http( - SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), opt.port), + SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), opt.port), node, net, config_api,