Exercise 10: Implementation of HTTP (Hyper Text Transfer Protocol)
Steps
Step 1: Setup Devices in Packet Tracer
Open Packet Tracer.
Go to End Devices, select PC, and drag it onto the screen.
Again, go to End Devices, select a Server, and drag it onto the screen.
Connect the PC and Server:
Use a cable (e.g., copper straight-through) to connect the PC to the server.
Click on the PC and the server in sequence to establish the connection.
Step 2: Configure IP Addresses
PC Configuration:
Double-click on PC0.
Go to Desktop > IP Configuration.
Set an IP address for PC0 (e.g., 192.168.1.2).
Server Configuration:
Double-click on Server0.
Go to Desktop > IP Configuration.
Set an IP address for the web server (e.g., 192.168.1.1).
Step 3: Configure the Web Server
Double-click on Server0 and go to Services > HTTP.
Add HTML Content:
Click on HTML and add a simple HTML code.
Example HTML code:
<!DOCTYPE html><html><head><title>Page Title</title></head><body><h2>Welcome To GFG</h2><p>Default code has been loaded into the Editor.</p></body></html>
Save the changes to ensure the content is ready for serving.
Step 4: Access the Web Server from the Client
On PC0, go to Desktop > Web Browser.
Enter the server’s IP address in the address bar (e.g., 192.168.1.1).