Here is our setup.
- The FEZ Cobra II (WiFi) Single Board Computer
- with a RS9110-N-11-22-04 WiFi module
- and running the .NETMF 4.2
The documentation says that:
This allows for real "Socket" connection over WiFi...
... [the Wifi module] is a complete IEEE 802.11bgn WiFi client device
We have succeeded at the following:
- Connect the Wifi module to our home wireless network.
- Make an HttpWebRequest to an arbitrary Internet server.
- Open a socket to an arbitrary Internet server and receive data.
What we want to do now is to open a TCP socket to our Desktop Computer (ASUS A55A with a standard setup). Here are two options:
- Connect the Cobra and the PC via the Internet (WAN). This seems like overkill.
- Connect the Cobra and the PC via the Intranet (LAN). This seem preferable.
That's the question. How do we create a LAN between the Cobra and the PC? Here are some sub-questions:
- Does this entail turning the Cobra into an Ad-Hoc Host?
- Is the router required?
- Or, can we circumvent the router and communicate directly between the Cobra and PC?
Diagram of the Goal
Application on Cobra II | | | Wifi Module in Cobra II | | | Wireless TCP Socket | | | Router (required?) | | | Wireless TCP Socket | | | Wireless Card in Desktop Computer | | | Application on Desktop