Manual IP in ESPEasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Manual IP in ESPEasy

#1 Post by FreddyPL » 14 Mar 2018, 18:21

Is it possible to add a manual entry of the IP address, for example in the last four bytes of the firmware?
regards
----
Regards, Freddy

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Manual IP in ESPEasy

#2 Post by grovkillen » 14 Mar 2018, 18:34

Please elaborate what you mean. Manual IP have been around for a long time.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: Manual IP in ESPEasy

#3 Post by budman1758 » 14 Mar 2018, 22:06

Maybe wants to hardcode it into the firmware and compile it?
"The glass is twice as big as it needs to be".

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: Manual IP in ESPEasy

#4 Post by FreddyPL » 16 Mar 2018, 07:59

I know that manual IP addresses is possible for a long time.
My ask is to make it possible to correct the IP address in the compiled code, because AP does not always allow connection.
I do not know if I described it well
----
Regards, Freddy

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Manual IP in ESPEasy

#5 Post by TD-er » 17 Mar 2018, 11:34

There are some default defines in the code (look for "#define DEFAULT_") which you can change.
There will be a change very soon to allow to have a separate file with all those defines you can use for your own compiles.

But if you set the IP as static in the config, it will always have that IP. Just make sure it isn't one from the range used by the DHCP server on your modem, or else you will experience other issues.

Note that when you cannot connect to the accesspoint, setting the IP to static doesn't make a difference, since it is still not connected to the network.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: Manual IP in ESPEasy

#6 Post by FreddyPL » 19 Mar 2018, 17:03

#define default it's good idea :)
I know about static IP address, My DHCP is starting from 192.168.0.10, and I have pool of 20 addresses.
I already have static addresses for printer, and scanner, so that's ... no problem :)
Note that when you cannot connect to the accesspoint, setting the IP to static doesn't make a difference, since it is still not connected to the network.

That's why I must change my address from 192.168.4.1 to 192.168.0.110 f.e . :D
----
Regards, Freddy

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Manual IP in ESPEasy

#7 Post by TD-er » 20 Mar 2018, 19:08

That 192.168.4.xxx address is only for initial setup when you cannot yet connect to a network and the ESP thus acts as an accesspoint.
Then you can connect to it via your mobile (or laptop) and start initial setup of the ESP module.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: Manual IP in ESPEasy

#8 Post by FreddyPL » 30 Mar 2018, 08:07

I changed the initial address 192.168.4.xxx for my 192.168.0.110
I saved the settings I made reboot, but the address 192.168.4.xx is still active, and 192.168.0.110 is not working
----
Regards, Freddy

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Manual IP in ESPEasy

#9 Post by TD-er » 30 Mar 2018, 18:57

FreddyPL wrote: 30 Mar 2018, 08:07 I changed the initial address 192.168.4.xxx for my 192.168.0.110
I saved the settings I made reboot, but the address 192.168.4.xx is still active, and 192.168.0.110 is not working
The 192.168.4.x address in the code is only used when the ESP is an accesspoint for initial configuration.
When you want to set a fixed IP, do it through the web interface.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: Manual IP in ESPEasy

#10 Post by FreddyPL » 31 Mar 2018, 15:57

Thanks,
do I must to switch something to not work in AP mode, but it was visible in the router?
----
Regards, Freddy

Post Reply

Who is online

Users browsing this forum: No registered users and 130 guests