Default IP for Photon not connected to the Cloud

What is the default IP of a Photon that is not connected to the Particle Cloud? Is it a valid IP address that one could use in a TCP client.connect() call to connect to a server accessible via a local WiFi access point? The app is setting the operating mode as MODE MANUAL as the local WiFi access point only has a server connected to it and has no access to the Internet. There is no DHCP support via the server it will connect to.

I believe the server is using a mask of 0.0.0.0 so it should be able to receive via any valid IP address from the Photon.

Does your wifi access point have DHCP configured? That’s where the device will get its IP address from. If not, we have static IP support coming in 0.4.5, so you can configure the IP and subnet manually.

I hope that answers your question! :smile:
mat.

1 Like

Is there an update on static IP support? Like @jmosk, I have an application in which the Photon will be connected to a network that has no Internet access and no DHCP support.

Thanks.

-Randy

Yes, have a look in the docs:
https://docs.particle.io/reference/firmware/photon/#wifi

We are now already at 0.4.7 and 0.4.8 is about to be released.

Great! Thank you.