some of this examples run server code on remote computer though you can also run the examples locally on localhostremote execution better captures the flexibility and power of sockets to run remotelyyou'll need access to an internet accessible computer with pythonwhere you can upload and run scripts you'll also need to be able to access the remote server from your pc to help with this last stephere are few hints for readers new to using remote servers to transfer scripts to remote machinethe ftp command is standard on windows machines and most others on windowssimply type it in console window to connect to an ftp server or start your favorite ftp client gui programon linuxtype the ftp command in an xterm window you'll need to supply your account name and password to connect to nonanonymous ftp site for anonymous ftpuse "anonymousfor the username and your email address for the password to run scripts remotely from command linetelnet is standard command on some unix-like machinestoo on windowsit' often run as client gui for some server machinesyou'll need to use ssh secure shell rather than telnet to access shell prompt there are variety of ssh utilities available on the webincluding puttyused for this book python itself comes with telnetlib telnet moduleand web search will reveals current ssh options for python scriptsincluding ssh pyparamikotwistedpexpectand even subprocess popen spawning clients in parallel so farwe've run server locally and remotelyand run individual clients manuallyone after another realistic servers are generally intended to handle many clientsof courseand possibly at the same time to see how our echo server handles the loadlet' fire up eight copies of the client script in parallel using the script in example - see the end of for details on the launchmodes module used here to spawn clients and alternatives such as the multiprocessing and subprocess modules example - pp \internet\sockets\testecho py import sys from pp launchmodes import quietportablelauncher numclients def start(cmdline)quietportablelauncher(cmdlinecmdline)(start('echo-server py'spawn server locally if not yet started args join(sys argv[ :]for in range(numclients)start('echo-client py %sargspass server name if running remotely network scripting spawn clients to test the server