简体   繁体   中英

Change Default Localhost IP address (127.0.0.1) of an express (node.js) Server

How can I change the default localhost IP address (127.0.0.1) of an express (node.js) server? I am developing a web site interacting with a Geth (Ethereum) private Network which already uses that localhost IP address, and thus there is a conflict.

Why not just set the port for the express server to run on something different than the ethereum node? Being on the same IP shouldn't be an issue, but if they are running the same port, that would be an issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM