You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is so easy, first get all interface exist in your Google compute engine, then follow code below:
constos=require('os');constip=require('ip');// it gives you array of interfaces,// you can pick the name of that interface you wanna get IP addressos.networkInterfaces();ip.address("_interfaceName","ipv4")// you can now obtain the interface IP address you wanted.
How to know External IP of a Google compute engine where my NodeJs application running. all time it shows internal Ip
The text was updated successfully, but these errors were encountered: