If you are running the client and server on two different devices over the same network (e.g., your home network), how to know the IP of the server?
Parallel Computing and Distributed Systems
Assignment 2 (10 points)
Carefully read the shared client.java and server.java files along with the comments placed per command. Run the server project
first, then run the client project. These projects create a chat between the client and the server. Through the terminal window of the
client, you can start writing some statements, and on clicking enter, you should find these statements on the terminal of the server
side along with responses back from the server displayed on the client side. This chat will keep on until the client sends exist as
a command and clicks enter; this will terminate the connection established as well as the read and write streams on the two sides.
Task1 description (5 points):
In this assignment, you will extend these shared files to implement an interactive two-tier communication application using network
sockets. Usually, the client and server applications reside on two different devices (e.g., two computers, a smartphone and a
computer). But, to keep this lab simple, you can run both client and server applications on the same computer.
If you are running the client and server on the same device, the IP of the server will be localhost or 127.0.0.1
If you are running the client and server on two different devices over the same network (e.g., your home network), how to know the IP of the server?
If you are running the client and server on two different devices over different networks – check the VPN section below.
The client hosts the user-interface layer where the user can send command(s) to the server. The server hosts both the processing
and data layers to handle the incoming commands from the client side on stored data. The data layer at the server side keeps a
dynamic list (ArrayList) of integers (initially empty) named as inputValues to handle (add/remove) data to/from the user.
The user at the client side enters a command through the terminal (e.g., of your IDE) and then waits for a response back from the
server to be able to enter another command. The following table shows the different supported commands that the user can send to
the server side, along with the proper handle from the server side and expected responses. The client side should print a list of the
supported commands to the user to help them write the correct formatted command. If the user sends any other command or a
supported command, but in a different format, the server should ignore the received message and respond with unsupported
command without exiting either the client or the server.
A command from the client to the server is a JSON object, with a unique identifier as the key and the actual instruction as the value.
A response from the server to the client is also a JSON object, with the iden
Get Your Paper Before the Deadline. Our Services are 100% private and Confidential
Useful Links That Will Help You Around
Link to new order https://studentsolutionsusa.com/orders/stud/new
link to login page https://studentsolutionsusa.com/orders/login
New user registration link https://studentsolutionsusa.com/orders/register
Forgot Password https://studentsolutionsusa.com/orders/forgot/password
FREQUENTLY ASKED QUESTIONS
Question: How does this work?
Answer: Good Question. We are a group of a freelance board of students and professional essay writers. At our website, you may get help with any type of academic assignments: essay, coursework, term paper, business plan, case study, article review, research paper, presentation, and speech. Top writers can help with complex assignments such as dissertations, thesis papers, etc. All of them are professionals possessing excellent knowledge in their field of expertise, perfect writing skills, quality, and speed. When you place an order on our website, we assign it to the best writer. Once the writer finishes the work, the paper is submitted to our quality assurance desk who go through it and ensure it is unique and plagiarism free and that the instructions were followed to the detail. After this step we upload the paper in your account, we also send a copy to the email that you used to register the account with. we can guarantee you that the paper will be 100% plagiarism free. Besides, our services are 100% private and confidential
Question: How do I place an Order after getting to the order page
Answer: There are three major steps in the ordering process
Step 1 ....................................................paper details In this step, you will fill in the instructions of your paper; you can upload any materials that you feel will make your assignment a success. Besides, you can also email us at [email protected] Remember to specify the correct academic level. Please note that sources mean the number of references.
Step 2...................................................... Price calculation Kindly specify the number of pages, type of spacing and the correct deadline. This step will give you the estimated cost minus discount -- you may add the extra features if you wish.
Step 3 ....................................................discount and payment Use the discount code HAPPY2018 to enjoy up to 30% discount of your total cost After this step, proceed to safe payment; you can checkout using your card or PayPal Please note we will send the complete paper to the email you will provide while registering. A copy will also be uploaded to your account
Question: How will I know when my paper is complete? or How will I get the complete Paper?
Answer: Once we are done with the paper, we will be uploaded to your account. A copy will also be sent to the email you registered with. We can guarantee you the following:- 1. Our service is private and confidential; we don't spam or share your contacts with anyone 2. The final paper will be plagiarism free. We will send a Turnitin Report to the email you registered with 3. At our company, willing to do free unlimited revisions until you are satisfied with your paper
Question:- Am a new client, How can I get the guarantee that the paper will be completed and sent to me before my deadline?
Answer: Thank you for expressing your concerns. We would love to have you as our loyal customer. We are certain if we do good work, you will come back for me. Besides, you will give us referrals to your friends and family. For that reason, we can’t fail to deliver your paper within your specified time frame. We will ensure we submit the paper on time so that you can have enough time to go through it, if you have problems with the paper delivered, you can request a free revision. You are entitled to as many revisions as you would wish until you get a paper that satisfies you
Useful Links That Will Help You Around
Link to new order https://studentsolutionsusa.com/orders/stud/new
link to login page https://studentsolutionsusa.com/orders/login
New user registration link https://studentsolutionsusa.com/orders/register
Forgot Password https://studentsolutionsusa.com/orders/forgot/password