How to make a program that sends data through the WiFi router
-
03-10-2020 - |
Question
I got a WiFi router connected to my PC. What I want is to send from another device some data to my PC through the Wi-Fi adapter. Program on the device is developed using EVC++. The one on PC - on VC++.
EDIT 1: PC has an IP address. Another device s IP is set at program execution. I mean WiFi IP address. And then connection to WiFi router is proceeded.
EDIT 2: What if it uses an ethernet and wifi together? How should I make a connection through WiFi?
Solution
WiFI is no different to usual Ethernel network. So you just usually find out IP of other computer (in config/ask user/DNS), establish usual TCP/IP connection and send data on.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow