Well it works this way....
Well the port numbers should be different if you are using the application in a standalone computer. what you should do is after writing the codes(with localport =201 & remoteport=202), you should compile & make exe file of that code. Next make localport=202 & remoteport=201 & recompile & make exe file with a different name ( eg make winsck1.exe for the first & winsck2.exe for second).
Now You open both windows by double clicking on those exe files & test your application. Remember, you should compile & make exe & then test the application.
See if it works or mail me at [email protected] if you have any problem.
If everything goes fine, you will know why I said make localport=201 for first exe file & remoteport=201 for the second.