The purpose of this lab is to show the fundamental steps to develop and test a client-server application in C and test it in GNS3.
NOTICE: this lab requires the GNS3 VM to instantiate a Docker container of a Linux Ubuntu-based end-system.
apt
command line tool.ifconfig
to get the IP address assigned by DHCP to the Server.cd mkdir socket-demo cd socket-demo/ apt update apt install net-tools iputils-ping wget unzip build-essential wget https://github.com/rcanonico/socket-demo/archive/refs/heads/main.zip unzip main.zip cd socket-demo-main/ make lsThe
ls
command should show the following output showing the executable programs besides the source code files with the .c extension.make
following directions in the Makefile.ls
command should show the same output produced on the Server.ServerTCP
in the Server terminal. This will produce the following output.ClientTCP
in the Client terminal by specifying the Server IP address on the command line.netstat -ant
at the root prompt.netstat -ant
at the root prompt.Copyright (c) 2024 - Roberto Canonico
Last updated: November 4, 2024 by Roberto Canonico