The server server.lua accepts tcp connections from port 3515. A client sends a number and the server replies with the same number, Fizz, Buzz or FizzBuzz.
You need lua and lua-socket packages for the server, socat for the client.
sudo apt-get install lua lua-socket socat
Run ./server.lua it will listen to port 3515, then run ./client.sh and watch the output.
./server.lua & ./client.sh
Download the source code.