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
I'm having a little bit of an issue, depending on how a Droplet is made (Private networking on or off) the returned Network Array will be slightly different.
I currently get the Droplet's Public IP as such:
$ip = $userAtom->networks[0]->ipAddress (For a Droplet with Private networking turned off)
&
$ip = $userAtom->networks[1]->ipAddress (For a Droplet with Private networking turned on)
This is causing me a headache, is there no way to get the Droplet's Public IP regardless of the Private networking status, with a single statement?
Just seems a little annoying that $userAtom->ipAddress does not work.
For instance:
using $userAtom->networks[1]. (with Private network off results in no IP being found).
The text was updated successfully, but these errors were encountered:
Hi
I'm having a little bit of an issue, depending on how a Droplet is made (Private networking on or off) the returned Network Array will be slightly different.
I currently get the Droplet's Public IP as such:
This is causing me a headache, is there no way to get the Droplet's Public IP regardless of the Private networking status, with a single statement?
Just seems a little annoying that $userAtom->ipAddress does not work.
For instance:
using $userAtom->networks[1]. (with Private network off results in no IP being found).
The text was updated successfully, but these errors were encountered: