-->
Page 1 of 2

the 192,168,4,1 address?

PostPosted: Mon Feb 11, 2019 2:49 pm
by josephchrzempiec
Hello I wonder if it is possible to Change the 192.168.4.1 Address to something else? I'm not connecting to any wifi network Just by it's self.


Joseph

Re: the 192,168,4,1 address?

PostPosted: Mon Feb 11, 2019 4:34 pm
by btidey
192.168.4.1 is just the default.

If setting up softAp yourself then see https://arduino-esp8266.readthedocs.io/ ... class.html for how to control it including the IP address.

If using the AP used by wifimanager to initialise networking then use wifiManager.setSTAStaticIPConfig to control what AP IP it uses to listen for. https://github.com/tzapu/WiFiManager#cu ... figuration

Re: the 192,168,4,1 address?

PostPosted: Tue Feb 12, 2019 6:17 pm
by josephchrzempiec
Hello i mange to change the address not with the pages you gave me but i found other website with it.

Re: the 192,168,4,1 address?

PostPosted: Thu Mar 07, 2019 6:20 pm
by josephchrzempiec
hello i did try the example with changing in access point but i can not figure out how to add a password i tried to look on the site and it told me how i can do it. but i tried and failed can you please help me this is the example.

Code: Select all
#include <ESP8266WiFi.h>

IPAddress local_IP(192,168,4,22);
IPAddress gateway(192,168,4,9);
IPAddress subnet(255,255,255,0);

void setup()
{
  Serial.begin(115200);
  Serial.println();

  Serial.print("Setting soft-AP configuration ... ");
  Serial.println(WiFi.softAPConfig(local_IP, gateway, subnet) ? "Ready" : "Failed!");

  Serial.print("Setting soft-AP ... ");
  Serial.println(WiFi.softAP("ESPsoftAP_01") ? "Ready" : "Failed!");

  Serial.print("Soft-AP IP address = ");
  Serial.println(WiFi.softAPIP());
}

void loop() {}



from this address that you gave me. https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/soft-access-point-class.html