CS 3733 Operating Systems Classroom Activity 2 on Networks


  1. This is a continuation of Network Activity 1.
    It assumes you have downloaded and compiled the chapter 18 programs.
  2. Look up your port numbers here.
    For this activity you will be using the first port number assigned to you.
  3. Find partner.
    Ask your partner for his/her port number and machine name.
    Your port number will be referred to as your-port-number and your partner's will be referred to as partner-port-number.
    Similarly for the host names.
  4. The one with the smaller port number will run:
         serverp2 your-port-number
    and the other will run:
         client2 partner-hostname partner-port-number
    Note that you should both be using the same port number.
    The two of you should be able to send messages back and forth.
  5. Switch roles in the other terminal window.
    You can leave your other programs running.
    The server will always use your-port-number and the client will always use partner-port-number and parter-hostname
  6. After you have played with this for a while, shut down your server.