Skip to content

Instantly share code, notes, and snippets.

@yogain123
Created June 13, 2018 18:25
Show Gist options
  • Save yogain123/d40273c12dab7123f6a77fc4994278b8 to your computer and use it in GitHub Desktop.
Save yogain123/d40273c12dab7123f6a77fc4994278b8 to your computer and use it in GitHub Desktop.
linux
@yogain123
Copy link
Author

TCP/IP , HTTP, FTP

Screen Shot 1941-05-13 at 2 21 03 AM



Screen Shot 1941-05-13 at 2 21 47 AM



Screen Shot 1941-05-13 at 2 22 16 AM

@yogain123
Copy link
Author

Localhost vs Private IP

When you access localhost, your /etc/hosts file will tell your computer not to look any further and redirects you to your own computer. When you access the local IP adress, your computer will ask the router to fetch the data, and your router will then point back to your computer.

localhost work via your system (Works even internt not coming)
Private IP works via router (won't work if internet not coming)

Port 80(http) and port 443(https) are considerd to be system port and , if you specifiy any url with 80 or 433 , then you don't have to write it in url, its present but will be seen hidden , simply => http://localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment