Yes it is possible, just connect to localhost. You can listen for incoming on a port and send outgoing on the same port no problems at all. As a general rule Java Scoket tutorials teach you to use...