Flash to router socket

Forgive me for being a complete novice, but I have yet to find a good tutorial on this. I have made plenty of projects in AC3, and I am comfortable with the language itself. I also know some C++. My friend and I are creating a Wifi controlled flying Quad rotor helicopter, he is designing the actual copter, i am programming the various servers. Now I have never done anything like that, so im somewhat at a loss. We have a template project, for something much simpler (http://www.jbprojects.net/projects/wifirobot/) but it’s client app is written in Visual Baisic 6, which i have little desire to learn now. I was wondering if I could use AS3 to make the client app, since I could make a much nicer interface with it. I know there is a Socket class in AS3 but is this what I need? if it is, is there a good tutorial on how to use them for this purpouse? and finnaly, the dumbest question of all, in everything I’ve looked at, the connection command has just like “localHost” or something like that, for the server, what do I enter for the serven name or whatever it is called, so it can find the router.

BTW the router is mounted on the copter which connects physically to some sort of microcontroller, the router needs to recieve info from the comp, send it to the microcontroller, and recive sensor data and send it to the comp.