Senior Design project help, sending message over tcp to motor drive for robot

PeterH: I looked over the Baldor documentation today and confirmed that it is looking to receive ASCII messages not hex. As far as the TCP socket, I haven't been able to have the arduino connect to the microflex or even my computer if I manually set the ip. I'm not sure how to configure my mac to act as a server. In addition I have not been able to see any TCP data from my arduino using Wireshark. I assumed that was due to the fact that my mac was not acting as a server. Are there any problems with my code that wouldn't allow me to connect to a server at the ip 192.168.0.1 and port 5002?
Thanks again.