Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨 Angular 2/5/6 大师,
我正在尝试这个,以获取我机器的网络 IP 地址。但我得到了“localhost”作为 IP 地址。例如,我期望这个结果类似于 10.0.5.21。 反正我能得到这个吗?
非常感谢你们! 阿塔尼斯·泽拉图
尝试https://jsonip.com
https://jsonip.com
this.http.get('https://jsonip.com/').subscribe(data => { console.log(data); });