-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static ip configuration through the web interface #2219
Comments
Use Web Console and enter or use the command on Web line, e.g. see Wiki Commands for WiFi I think Console was designed for all what do not have an explicit input field on page. Always have in mind, that the resource of Sonoff device (flash, mem) is limited. |
I'm aware of this command and used it before. |
Static IP is not really common and can be bad idea with some routers. While I am sure you understand the constraints not everyone does. My Asus router always assigns the same IP address to the same mac address, so I have static IP addresses but am using DHCP. Some other manufacturers do the same, but others do not. My router also let's me assign particular static addresses to individual devices. It's been several decades since static IP has been required for normal use. |
I agree with @Frogmore42 fixed IPs are not needed by almost everyone. |
There is Static IP field in Espurna Web interface, and I filled it in to make ip address of my RF bridge static. |
@akasma74 This is Tasmota not Espurna! |
@Jason2866 I know. My post is just an illustration of what @Frogmore42 and you explained to the TS. |
You're all right to a ctain extent :-) But as you gave me us/a hint/solution how I can change the IP address via console. At least I would be satisfied and IP via Web-Interface in the Admin section would be nice, but not a must). |
If you really want the feature, there is nothing stopping you from creating it. That is the beauty of open source. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Yes here too I am interested in static IP configuration. Today I do utilize DHCP reservation for a few devices but most of my network devices are using static IP. (subnet mask here is full now at /25). |
You use live internet IP addresses for Tasmota devices? Just trying to understand why you have a /25 limitation? |
That aside I think the use of static ip addresses are a little deprecated and over complicates things for normal users. If you really want to use static IP addresses then there are commands that can be used for this as explained by @curzon01 and in the Wiki. I do not think this particular feature would be in the best interest of 99% of Tasmota users. @ascillato thoughts on this one? |
Hi, To use or not to use a fixed IP depends only on how you are configuring your network. You are free to use this feature or not. There are all the commands for setting that, using the console, a mqtt message or a http command. But I think that the intention goes beyond that. It is on how easy is to set up Tasmota at first if you are using the standard precompiled bins. Now, first you flash your sonoff.
So, for the second case, I think that should be useful to have more initial configuration fields in the AP mode like MQTT broker config and also fixed IP if you need it. At least all the parameters to config your Tasmota and not need to use your router or another program to continue the initial config. |
Good point, will it be possible to give web console access in AP mode? That will solve a lot of other initial setup requirements. |
@andrethomas I believe that already works, when going directly to http://192.168.4.1/cs |
You use live internet IP addresses for Tasmota devices? Just trying to understand why you have a /25 limitation? No. I still live in old world here of a small DHCP scope and many static IPs. Home network is a bit over 100 devices today using multiple managed Gb switches talking to 4 networks from firewall. |
I use 192.168.32.0/20 - for static ip devices I just do static reservations on the DHCP server. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I would also like this option. I’m a dedicated IP-guy. The DHCP-settings of my ISP provided momden/router can’t handle that many assigned IP-addresses and I can’t remember that many hostnames. Since a while the Fing app doesn’t provide that much info on the devices it finds. ipaddress1, ipaddress2, etc. does also work, but having this in the GUI would be a nice feature. |
Closing this one for now since a simple workaround is posted here #2219 (comment) Can always be opened again later if there is demand for it. Support InformationSee Wiki for more information. |
to change ip in tasmota to 192.168.0.210 type in console: ipaddress1 192.168.0.210 restart 1 |
First post when searching google for "Tasmota static ip" For the sake of it, I'll copy/paste from doc, it was quite obscure why ipaddress1/2/3/4 (yes, RTFM, but it usually starts with a Google search)
|
Its always the same, some like fixed IP, as me, some do not. DHCP is fine and the right thing for not so sophisticated users, More sophisticated users mostly prefer fixed IP. In my opinion servers and similar devices should have fixed IP, especially when you use an internal DNS server. Yes you can match mac addresses to IP in most DHCP servers, so you have something like fixed IP, but in my now about more than 30 year in IT and networking I found out thats only about 95% stable, but for DNS and some other reasons, i.e. a server or a MQTT broker etc. it is essential the IP address is 100% fix and stable. DHCP ist ok for all the mobile Device and even for workstations and small home networks with an internet router and some workstations + some mobile phones but the problem begins when there a network printer, then it is fine if the printers fixed IP ist known. |
@muekno Tasmota supports fixed IP addresses. There is just no webui for this one time! needed setting. |
I've had a weird issue yesterday. I've been using Tasmota flashed Sonoff devices for about 18 months... (currently running 8.5.1) And my main router crashed yesterday. Meaning my DHCP server disappeared. It seems there is code trying to resolve the DHCP, before allowing the physical switch to operate... I'm busy today switching ALL my devices to static IP's. And setting up DHCP on a sub-range, and static for the rest... |
While I thank @amayii0 for directly posting the section of the manual to configure the IP via command line... I Highly disagree with the people posting stating giving accessibility options to others some how hinders the average user and I feel it is the complete opposite. WLED gives you the simple options to configure your network settings in the GUI but no one complains about that... If you have a tick option that enables advanced fields when disabling DHCP then it doesn't bother people who don't need it. I would consider WLED far more "complicated" than Tasmota but they get these no problem. Just because you don't like static IPs on your network doesn't mean it is a bad idea to add the settings. This poor attitude drives people away, not makes them thank you for "keeping the settings simple." Because in the end needing to enter everything through a command line isn't simple. |
@charredchar I encourage you to fork, modify and build using gitpod. The process is well documented, free, and far easier than you probably expect. You can build any feature within your capability. If you are successful submit a pull request. Please keep in mind flash size is minimal and the main binary is getting big already. In your pull request, mention the minimal increase in size with quantitative numbers. While you are at it, make a box for NTP server since those who are not using DHCP will need it. I use DHCP with static leases to configure phones, IP cameras, thin clients, printers, network boot etc. because it’s far easier to configure everything on my router and replace the devices or change their network centrally.. I have no vested interest in this feature but I will offer support in the discussion thread and help review your pull request. |
Hi Tasmota folks,
This is a feature request for adding option to set static IP using the web interface.
I would love to have such feature.
Cheers.
The text was updated successfully, but these errors were encountered: