简体   繁体   English

node.js中的$ _SERVER ['SERVER_ADDR'']是什么?

[英]What's $_SERVER['SERVER_ADDR''] in node.js?

How to get the IP address of the machine where the node.js server is running? 如何获取运行node.js服务器的机器的IP地址? I've checked process.env. 我检查了process.env。 But that doesn't seem to include this variable. 但这似乎不包括这个变量。

您的net.createServer()服务器具有net.createServer() .address()属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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