JurajA wrote:and do you have some server at IP address 192.168.0.1 port 5000?
try the WebClient example of the Ethernet library (comment out lines with compilation errors)
No, I don't have such a server, but my concern is in getting an address from DHCP server. I don't understand why NodeMCU does not get the address.
BTW, if I reset NodeMCU it gets the address and it works. What could cause such a behaviour?