Moderator: Mmiscool
Alternatively on windows you can use wireless net watcher I believe it is called.
Or you can view the devices on the connections or devices page on your router.
Errr unless you mean gateway your gateway for static configuration in which case it would be your router IP normally 192.168.1.1 in client mode sometimes it is different dependent upon what you have it configured as or the make of your router.
The gateway IP of the esp will be the static address you set if setting a static address so instead of being 192.168.4.1 it will be whatever static IP you decided to give it.
I guess I did not fully understand the question but hopefully those bits of info will clear the air.
Where I buy my ESP8266 boards from... (Banggood)
Thanks very much for that, I guess I didn't explain the background very well. What prompted me to look at this was the post by someone about broadcast addresses, which essentially gave a way to change the last byte of the ip address to 255. I read it, and I thought - that works for a typical home setup, but suppose the mask isn't 255.255.255.0. (the answer mostly would be use 255.255.255.255 as the broadcast address, but that's not really the point) . Then I thought - don't remember seeing anything that lets me access the dhcp delivered conf info for that. I could connect to the router and read that, but I wouldn't expect to have to do that on any other client device. And it would have to be tweaked for different routers and might mean transmitting passwords more ofte than I'd like. Hence the feature request.
I agree about fing, it's one of the apps I use myself on android for network stuff and I really like it as a quick check.
have you tried this below once connected to router?
bla = val(subnet)
print bla
May or may not want to read what is below as it is slightly off topic chatter so if you want to stick to the point just read what is above to avoid any confusion.
----------------------------------------------------------------------------------------------
I did not understand the question default gateway kind of threw me off you could figure out the subnet if you connect to the same network with a phone or PC for the time being. However not so sure how to do this in basic. I am sure it is handled and stored somewhere. And you are correct it is not always default.
My knowledge of subnets is vague at best I only have an assumed knowledge of them just through using them I've never read a word about subnets I only know of them through doing networking and study of the effects of a subnet. From my experience subnets seem to be in place to allow for separation in intranets. So in theory you could have many intranets with a single point of entry that point being the one that is connecting to the other subnet from which you would access it from. Now could this be incorrect yes! I have discerned everything about subnets by use and cause and effect. Sometimes you draw improper conclusions learning things in this manner if you don't investigate deep enough. Like I suppose it is entirely possible to connect to a router on 255.255.255.0 with two other routers that are on 255.255.255.254 for instance having two points of entry however, it is possible that this may cause a conflict instead and not be doable I have never had the need to test this but it is just a though that came to mind.
Where I buy my ESP8266 boards from... (Banggood)