Testing Java Sockets on Local Computer
Posted on 2008-06-24
I am doing a homework from Distributed Programming, and thus far everything goes fine.
The only way to test my applications is to use the only computer I have as a Client, Server and a Workstation at the same time.
The problem is that I want to check how applications behave when some error happens during the transfer of big files (for example server goes down,...).
Since my client, server and workstation apps reside on the same computer they have the same IP's and the transfers are done immediately, no matter how big files are. I tried to use both localhost and my external IP address, but there is no actual trrafic! Therefore I am not able to simulate above mentioned exceptional situations.
Is there any way to simulate real traffic between two applications on the same computer. I use Java Sockets.