If so what's the best way to get two bits of software I'm writing to 'chat' to each other using IP's over either a LAN and/or the Internet? I basically just want to send simple commands and images between the two. A whole new area for me so just trying to find out where first to look to get started

Only one of the bits of software will need to check for incoming connection requests if that helps any.