How to send data to LAN while using mobile data but connected to WiFi (No Internet)

#1

How to send data to LAN while using mobile data but connected to WiFi (No Internet).
I am using chrome.sockets.tcp plugin.