1. if u do something with delphi it's coding not scripting

2. use the indy-tcp-ip components, the server-client socket (prof edition?) or a thing called nmsg (it's for text only) so u put it in your formluar enter port and ip (or just doing some edit-fields where u can enter it while running the program) get your server socket to listen and write everything it gets into a memo-field
add.memo1.lines or something like this...
this is for server
for client u search for the sending-function
(sendtext for nmsg I think havent't done anything in Delphi for a very long time)
or just watch help-file ^_^