Send cmd to ESP8266 from web server
In general servers do not push data to devices for several reasons. The most obvious reason is that the devices are behind routers which effectively hide them from the Internet.


  Does the module need to send request to server and get the respone again and again in a loop?


Yes, that is the usual method. The device just needs regular Internet access and routers are usually configured to allow outbound HTTP traffic.



As this isn't an electrical design question it will probably be migrated to one of the other SE sites.