Yes, it is possible to read and write to datasockets in 1 program. This is actually sometimes preferrable to using local variables. To answer your second question, in essence the same computer will be both the server and the client because you will publish to a url and subscribe from the same url all on the same computer.
Best Regards,
Eric Enger
National Instruments
Applications Engineer