Arduino wifi-direct

I've searched all over the web for examples on how to connect two arduinos over wifi and wifi direct but nothing shows up. I've seen plenty of web server example, but I'm looking for a direct p2p like Bluetooth. Is there a way to do so using the esp8266 wifi module?

Ps. Some code would rly help.

Is there a way to do so using the esp8266 wifi module?

Not that I am aware of, my understanding of the situation is that you need a network to connect to.

I'll be using the esp8266 module to connect to a network. I just wanna know how to have a 2 way communication between client and server.

2 way communication between client and server.

That describes almost all of the activity on the internet, so you should have no trouble finding information on how to go about it.