What’s difference between The Internet and The Web ? - GeeksforGeeks
What’s difference between The Internet and The Web ?
- Difficulty Level : Easy
- Last Updated : 03 Nov, 2021
Do many folks consider that they both are the same but are they really the same?
The Internet is a global network of networks while the Web, also referred formally as World Wide Web (www) is a collection of information that is accessed via the Internet. Another way to look at this difference is; the Internet is infrastructure while the Web is served on top of that infrastructure. Alternatively, the Internet can be viewed as a big book store while the Web can be viewed as a collection of books on that store. At a high level, we can even think of the Internet as hardware and the Web as software!
Web applications use HTTP protocol which is a layer over TCP protocol. Whereas internet applications can use either TCP or UDP protocol. To visualize the difference think of it as the internet is a network of many computers connected together so you can use any port say 90 to send or receive data whereas in web port is fixed as HTTP uses port 80 to communicate and also the data which is sent is HTML, CSS, and JavaScript. So if you want a feel of internet application make a socket connection at a random port and send data to another computer via the socket. So in this case you are using the internet for communication and not the web.