how to use specific port while creating server object ?
Posted: Sat Nov 25, 2017 4:03 am
I am creating web server of NodeMCU using
(at global level)
but I want to create server of port other than 80 . i.e. 88 instead of 80 since manually assigned IP is 192.168.1.88
and it is easy to rememeber.
in the setup function I have below
please help me on this ?
(at global level)
Code: Select all
ESP8266WebServer server (80);
but I want to create server of port other than 80 . i.e. 88 instead of 80 since manually assigned IP is 192.168.1.88
and it is easy to rememeber.
in the setup function I have below
Code: Select all
// config static IP
IPAddress ip(192, 168, 1, 88);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);
WiFi.config(ip, dns, gateway, subnet);
Serial.print("Mac Address:: ");
Serial.println(WiFi.macAddress());
// Connect to WiFi network
WiFi.begin(ssid, password);
please help me on this ?