Static IP configuration

somesh
Posts: 36
Joined: Tue Jun 25, 2019 6:44 am
Location: Pune
Contact:

Static IP configuration

Postby somesh » Tue Jan 21, 2020 7:11 am

Hello,

I am setting static ip in esp. I have given provision to change ip through web server. but if I configured wrong ip then how to recover esp to change ip to correct one.
please suggest.
Thanks,
Somesh Burkule

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Static IP configuration

Postby WiFive » Tue Jan 21, 2020 7:33 am

Mdns, reset button

somesh
Posts: 36
Joined: Tue Jun 25, 2019 6:44 am
Location: Pune
Contact:

Re: Static IP configuration

Postby somesh » Tue May 05, 2020 12:24 pm

Hi,

I am setting static ip but data is not sent over internet to the server.
It is working on local server.
what is the problem?
I am using following

tcpip_adapter_dhcpc_stop(TCPIP_ADAPTER_IF_STA);

tcpip_adapter_ip_info_t static_IP_info;
inet_pton(AF_INET, IP_Config.ip, &static_IP_info.ip);
inet_pton(AF_INET, IP_Config.sm, &static_IP_info.netmask);
inet_pton(AF_INET, IP_Config.gw, &static_IP_info.gw);
tcpip_adapter_set_ip_info(TCPIP_ADAPTER_IF_STA, &static_IP_info);
Thanks,
Somesh Burkule

Who is online

Users browsing this forum: Bing [Bot] and 196 guests