Can I make one NodeMcu ESP8266 to acts both as client and server?

Hi,

So, I have 3 esp and I want to make that three esp to be able to share and request data from each other. I'm using my home router as the AP. Is it possible?
Please help.
Thankyou.

yes, it is possible

Hi Juraj,
Thank you for replying. I'm still learning in making all this. I've tried searching for any code that I can use a reference but I still could not get it. Do you have any suggestions?

maisarrahh:
Hi Juraj,
Thank you for replying. I'm still learning in making all this. I've tried searching for any code that I can use a reference but I still could not get it. Do you have any suggestions?

do you use them with esp8266 arduino core?
then see the examples of the ESP8266WiFi library, for a server example and for a client example. use the examples to write your sketch.
here is he reference ESP8266WiFi library — ESP8266 Arduino Core 3.1.2-21-ga348833 documentation

if you don't mind to put in some pages in google translator, you could try this combined client and server on my homepage.

The working example can be found at the bottom of the page under "Links"

the walk trough starts here:
http://werner.rothschopf.net/201809_arduino_esp8266_server_client_0.htm