From d6529ab32190997867a45b2bde85b389572db5f5 Mon Sep 17 00:00:00 2001 From: Jack Hamer <47187316+JackHamer09@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:49:29 +0300 Subject: [PATCH] fix: bind server to 0.0.0.0 for external access (#115) --- 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,