COMP2211 Networks and Systems – Networks and Distributed Systems assignment.
Print lots of extra debugging information.
Run the server/client on the the specified port, e.g. -p 37001
will run on port 37001
.
- Navigate to
ns-networks-fresh/partA/
- Run the server:
python3 ftp_server.py -p 40404
- Run the client:
python3 ftp_client.py -p 40404
All Java files are in the xyz.robbie.nsnetworks
package.
- Store
.java
files in~/ns-networks-DUR1/src/
- SSH into mira1:
ssh vzbf32@mira1.dur.ac.uk
- SSH into mira1 from another terminal:
ssh vzbf32@mira1.dur.ac.uk
- Navigate to directory:
cd ~/ns-networks-DUR1/src/
- Compile Java source files:
javac -d . *.java
Let us use the example where the port number is 37002. To use a different port, just use a different number.
- From first terminal, start RMI registry:
rmiregistry 37002 &
- From first terminal, start server:
java xyz.robbie.nsnetworks.FTPServer -p 37002 &
- From second terminal, start client:
java xyz.robbie.nsnetworks.FTPClient -p 37002