Users all write the same thing: "The site is down." The addresses in their complaints differ. Check all three from the client.
Start on the card builds the client and the server 192.0.2.10, and commands containing lab-client run on the client.
Three addresses from the complaints
Run the three requests from the complaints on the client and compare what curl prints each time.
First, predict
There is no host 192.0.2.99 on the network. What will the second curl do?
Now start the exercise, run the command and compare your prediction with the output.
How does the request to :8081 differ from the request to 192.0.2.99?
-
curlprinted different lines with different numbers:curl: (7) … Couldn't connect to serverandcurl: (28) … Timeout was reached. -
Both requests ran under
sudowith the same rights. The refusal came from the server: nobody listens on port8081.
At 192.0.2.10:8081 the server's kernel refused at once, while at 192.0.2.99 there was nobody to answer, so curl waited until the timeout.