Run Hello World TCP
Go into the Directory HelloWorldTCP
cd HelloWorldTCP
IF you are running the Server:
make server
./helloServer [PORT NUM]
If you are running the Client
make client
./helloClient [PORT NUM]
Go into the TCP_DownloadServer directory
cd TCP_DownloadServer
cd TCP_Server
Run Make
make
Start server with your information
Important
If NO Port And IP Specififed it will use 8000 and 127.0.0.1 by default
./TCP-Server [PORT] [IP ADDRESS]
cd TCP_Client
Run Make
make
Start server with your information
Important
If NO Port And IP Specififed it will use 8000 and 127.0.0.1 by default
./TCP-Client [PORT] [IP ADDRESS]
- In
UDP_DownloadServerdirectory runmake allaltenratively, you can build Client & Server seperate - Server:
make UDP-Server, Client:make UDP-Client - To clean (del) both app makes. run
make clean - To build (both apps) in debug mode, run
make d(For enhanced error messages with GDB)
- On Server VM, run
ifconfig enp0s3command, and find the inet ipv4 address, something like 10.0.0.X generally - On Server VM, execute:
make UDP-Server, then:./UDP-Serverin terminal - On Client VM, execute:
make UDP-Client, then:./UDP-Client <VM1's IPv4>in terminal, this is the ip you found with command 1.
./UDP-Server in the terminal
./UDP-Client 127.0.0.1 in a second terminal window
127.0.0.1 could also be 0.0.0.0