I am implementing wi-fi
direct in universal platform for windows IOT
core devices but I have a problem that I have no monitor to connect to the devices(according to my project requirements).
So is it possible to pair the device making the pin hard coded at the server end or not using pin for pairing?
Yes this is possible, use the Windows.Devices.WiFi.WiFiAdapter API take a look at this tutorial:
https://developer.microsoft.com/en-us/windows/iot/samples/wificonnector
In short (taken and edited from the tutorial):
Make sure you add the correct device capability to your appx manifest:
After that you can use the following code to connect to wifi;