Tips, Tricks and Information for the Modern Technologist

Category: Java


A Simple Java TCP Server and TCP Client

Posted 18th September in Code Samples, Java, Software. 43 Comments

Following up on my previous post, we also had to demonstrate a sample Java TCP Server and TCP Client. The code footprint pretty small and it gives you a good idea about how a TDP Server opens up a port, and then the TCP Client sends or receives data from that port. This is a [...]


A Simple Java UDP Server and UDP Client

Posted 17th September in Code Samples, Java, Software. 44 Comments

For a class I am taking, we are testing out a simple UDP Server and UDP Client to demonstrate what each one does and how sockets work. The code size is very small and give you a good idea about how a UDP Server opens up a port, and then the UDP Client sends or [...]