answersLogoWhite

0


Best Answer

The localhost is the loopback network interface. Every machine uses the exact same address, 127.0.0.1, but that address is completely private to your machine. Even your local area network cannot access it, never mind the internet. The localhost essentially allows you to refer to your own machine, permitting access to its own servers (such as http://127.0.0.1 or ftp://127.0.0.1) just as if the request had actually come from another machine on the network. Even completely standalone machines have a localhost.

Your machine may have one or more additional IP addresses, depending on the number of network interfaces available. Most home computer systems use a router to connect to the Internet and every machine connected to it forms a local area network (LAN). Typically the router's LAN IP address will be in one of three ranges where the first octet is: 1-126 (class A), 128-191 (class B) or 192-223 (class C). Most home networks use class C addresses where the first three octets identify the subnet (such as 192.168.0) and the last octet identifies the machine (1 to 254). The router is typically assigned the first IP address, such as 192.168.0.1, and this is the gateway to the Internet. LAN addresses are not accessible from outwith the LAN -- they are private to the LAN (just as localhost is private to the machine).

The router also has an outward facing IP address that is assigned to it by your ISP. This is the only address that is visible to the Internet. The router ensures that traffic from the LAN to the Internet is made to appear as though it originated from the router via network address translation (NAT). Basically, whenever you instigate an Internet request, the router receives the request and stores it in a table along with your LAN address. The router then modifies the request (changing the port or adding additional information to the request) in order make it unique to you, swaps your LAN address for your ISP address and completes the call. When a response is received, the router looks up the table for a matching entry, swaps the ISP address for your local address and forwards the call to your machine. This gives the impression your machine is directly connected to the Internet, but it is not. The Internet is connected to your router and nothing else.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is it that when I am connected to the internet my localhost does not connect?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

I made a database using xampp at localhost phpmyadmin i made a form in visual basic and i want it to connect to my database do you know how to do it?

no, I don't


Why doesn't Steam work?

It just tells me: "steam.exe (main exception) To run steam, you must first connect to the internet" When i am connected What can i do?


How do you connect digital amplifier to digital amplifier?

You can look at the in and out connectors on the TV and the amplifier. You have choices that depend on the tv and amplifier, basic stereo, surround sound and tos-link. As you know in and out are connected and out and in are connected. Do not connect in and in to each other and do not connect out and out to each other.


How do you connect an earthing transformer with star connected secondary?

transformers transform


Why transformer does not rotate when its secondary is connected to bearing?

How do you connect the transformer's secondary to the bearings.

Related questions

What is a-localhost net?

a-localhost.net is an internet location that provides 'shortcut syntax' (intuitive, easy to remember) urls providing 'direct' access to internet connected resources and services intended for use by 'a localhost'. 'A localhost' is defined as 'the local computer (or device)' (ie. the computer/device you are currently using is considered the 'localhost)'.


Why won't my Dsi connect to the Dsi Shop?

You probably are not connected to the internet. you need to be connected to the internet to access the shop. If you don't know how to connect, go into setting and click internet.


Does an Internet browser allow a user to connect to the Internet?

No after you are connected to the internet the browser is used


If I have a wireless router for my psp can I connect to th internet whenever and wherever I want?

No, your PSP can connect to the internet when you are within about 50 ft of a wireless router that is connected to the internet. The router transmits a signal to the PSP, but the router itself still has to be connected to a modem that is connected to the internet.


How do you get to your Minecraft server?

go to to direct connect and type in localhost


How are computers connected throughout the internet?

to connect people is lalalalalllllllllllllllllaaaaaaaaaaaaaaaaaaa


How do i connect your xbox360 to the internet so you can get live?

# Need highspeed internet # Modem connected to router # Ethernet or Wireless Adapter to connect to network


How lg kp199 mobile will connect to PC for internet?

it cant be connected...


Does your computer have to be connected to connect to Xbox live?

No as long as you have a good Internet connection you can connect to xbox live


How do connect ps3 to internet using laptop with a usb modem using windows 7?

The PS3 does not connect to the internet using the USB port on the PS3. You must connect with either WiFi or an ethernet cable. The USB port on the PS3 is not designed to provide the PS3 with an internet connection and nothing connected to it will allow the PS3 to be connected to the internet


How do you Connect iTunes to the iTunes store?

Open itunes. If you are connected to the internet itunes will automatically connect to the itunes store.


Does your PS3 have to be connected to the PC to be online?

Answer no of course not. you don't even have to know what a PC is to connect a PS3 to the internet and it is connected to the modem or router no it can be plugged in to the phone line PS3 can not be connected to the internet with dial up WIRELESS INTERNET