Making an IP connection locally from simple TCP sockets applications is no problem. Being able to do that from any random or specific IP address to create a wan test environment is a little more difficult--unless you read this article!
IP Inter-network Testing Using Only a LAN
Published 04/12/2002
