Q)Why 127.0.0.1 is known as localhost and why it is common for every system? -> This address is also known as the Loopback address, which means any request sent to this address is again sent back to the same machine. -> Here internal communication will be happening, so that no internet is required. -> We can test our application so safely without connecting to the internet, which helps us to create a controlled environment for the application to interact without affecting the outside world. A possible question may arise? Q) But every device will have a unique IP address know? Then how 127.0.0.1 is a localhost to every system? ->The range of IP addresses from 127.0.0.0 to 127.255.255.255 are specially reserved for loopback addresses by the Central Internet Authority (IANA - Internet Assigned Numbers Authority) -> When we use the external communication(i.e., connecting to the internet to access the resources over the network), we require a unique IP address for accessin
VPN also known as a Virtual Private Network, this is used to establish a secure connection over the internet. By using the VPN we can surf over the web anonymously and our data will travel in encrypted form so that our data is not intercepted by other people. Why we use a VPN? Let us consider a situation, you are somewhere in a public place and you are connected to public Wi-Fi, Imagine you are entering a website and you want to enter sensitive data like your username and password, If any hacker connected to that public Wi-Fi then he can intercept all data what you are entering since you and the hacker are connected to the same Wi-Fi. So here if we use a VPN, our connection becomes private and the hacker will not be able to get our data since it will be in the encrypted form. How does a VPN work? Usually, the working flow of connecting to a web application is: In the browser we will enter the domain name --- Using the DNS this domain name converts into an IP address --- It goes to ISP