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
Fixing IP Address for ESP32 and PC Communication
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: Fixing IP Address for ESP32 and PC Communication
This is not a hardware question; moved to General Discussion.
Re: Fixing IP Address for ESP32 and PC Communication
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..
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
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
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
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.e2738729 wrote: ↑Wed Apr 03, 2019 2:10 pmThanks 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
John A
Re: Fixing IP Address for ESP32 and PC Communication
hi
Yes e2738729Thanks 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
Thank you you all very much for your helps!
Who is online
Users browsing this forum: No registered users and 99 guests