'How to connect Tablet and PC without Internet connection

I have two applications that communicate between themselves with websocket and webRTC Those applications meant to work offline. The communication works offline while thous applications run on the same computer.
I know that Thous protocols can work between two devices connected by wifi between them.

My plan is to run a server on a PC and connect to it with Tablet through wifi.

So my question is. With an offline computer. Can I create a local wifi network and connect a tablet to this network to enable websocket and webRtc communications?



Solution 1:[1]

Yes you should have no problem, even better you won't need a turn/stun server because your pc tablet won't be hidden behind NAT

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Skin_phil