Page 1 of 1

Fixing IP Address for ESP32 and PC Communication

Posted: Tue Mar 26, 2019 7:20 pm
by e2738729
Hi everyone,

I am not very good at network programming so I hope that someone could give me some directions to try.

I have a PC communicate with ESP32 via TCP/IP. The ESP32 is a server and PC is a client. As you already know, the PC requires the ESP32's IP address and port in order to establish a connection with the ESP32.

My biggest problem is that the ESP32's IP address is not fixed. First day I have "192.168.1.4", but now it is "192.168.1.3" What should I do about this? I dont want to change my python code on PC every time the IP address of the ESP32 changes.

Thanks

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Wed Mar 27, 2019 1:33 am
by WiFive

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Wed Mar 27, 2019 2:17 am
by ESP_Sprite
This is not a hardware question; moved to General Discussion.

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Wed Apr 03, 2019 3:56 am
by arunbm123
hello,

its simple
Connect to your router at 192.168.1.1 (This is for my router) check the ip on your router backside.

there goto DHCP reserved.

Assign a IP along with mac..Thats it..

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Wed Apr 03, 2019 2:10 pm
by e2738729
Thanks for your reply arunbm,

So just to clarify,

"there goto DHCP reserved.
Assign a IP along with mac..Thats it.."

I will do the above two steps on the router website right? Each router whenever I setup requires a website that I can log-in, setup the wifi name and password.

Thanks

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Wed Apr 03, 2019 5:08 pm
by fly135
e2738729 wrote:
Wed Apr 03, 2019 2:10 pm
Thanks for your reply arunbm,

So just to clarify,

"there goto DHCP reserved.
Assign a IP along with mac..Thats it.."

I will do the above two steps on the router website right? Each router whenever I setup requires a website that I can log-in, setup the wifi name and password.

Thanks
Yes, it is a function of the router supplying the DHCP addresses. There should be a setup page to fix a DHCP IP to a MAC address.

John A

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Thu Apr 04, 2019 3:01 am
by arunbm123
hi

Thanks for your reply arunbm,

So just to clarify,

"there goto DHCP reserved.
Assign a IP along with mac..Thats it.."

I will do the above two steps on the router website right? Each router whenever I setup requires a website that I can log-in, setup the wifi name and password.

Thanks
Yes e2738729

Re: Fixing IP Address for ESP32 and PC Communication

Posted: Thu Apr 04, 2019 2:52 pm
by e2738729
Thank you you all very much for your helps!