I used this AOI in V30 just a few days ago. Did you copy and past the code or import it? If you copy/pasted it, all the values will be initialised, including the MSG structures and tags, so nothing will work properly. If you import the AOI, the following is all you will need:
1) SKT_MSG_Client_Create.Path is
$01$00
2) SKT_DATA_Client.Create_Source.Addr.Port is
20001
3) SKT_DATA_Client.Connect_Source.DestAddr is
192.168.0.157?port=20001
4) Set your Client_Data.Timeout in the AOI Configuration Dialog(e.g. 20ms)
5) Enable the client
6) Write the data
Be careful which program you use to check the comms. I have had mixed results with different programs, and Hercules works well. See how you go