Questions tagged [localhost]

Localhost is an address/term used for testing connection to the local host (current computer) used for some network troubleshooting

localhost (all lowercase) (meaning this computer in computer networking) and is the standard hostname given to the loopback network interface.

IPv4

Under IPv4 the standard localhost address is normally assigned to:

127.0.0.1

IPv6

In full notation, the address under IPv6 is:

0:0:0:0:0:0:0:1
537 questions
11
votes
2 answers

How to add local forward setting to my ssh config file?

I currently can do this: ssh 12.34.56.78 -L 8888:localhost:8000 And I can then open my local browser to localhost:8888 and see the app running in my server at 12.34.56.78:8000. I want to avoid having to type in that forward command and instead place…
andrux
  • 215
  • 1
  • 2
  • 6
10
votes
3 answers

Assigning Multiple IP Addresses to localhost OS X 10.6

I'm attempting to host multiple website locally with HTTPS enabled, but in order to do this I'd need to configure my local machine to use multiple IP address for localhost (I believe). Is there any way to have multiple IP addresses resolving…
user1086746
  • 443
  • 1
  • 3
  • 7
9
votes
3 answers

DNS Lookups for local MAMP web server URL taking 5+ seconds

I'm running MAMP on OS X 10.7. I've set up a virtual host in Apache, like so: Allow From All AllowOverride All ServerName "example.local" ServerAlias "www.example.local" …
Ian
  • 1,488
  • 4
  • 26
  • 32
9
votes
4 answers

iptables: what does "--src-type LOCAL" mean exactly?

The iptables man page defines it as "a local address" but does this refer only to the 127 range (localhost) or does it include 10, 169, 192 as well ?
bobby
  • 449
  • 2
  • 4
  • 8
9
votes
3 answers

Windows Server 2008 - Connecting to 127.0.0.1

Im running Windows Server 2008 R2, we have an application that connects from (binds to) a public IP on the server to 127.0.0.1:8334 [connects to a service listening on 0.0.0.0:8334] In Windows 2003, there was no issue with this. We can connect using…
Summon
8
votes
5 answers

/etc/hosts file being ignored

My hosts file is being ignored, apparently. It contains: 127.0.0.1 localhost.localdomain localhost 127.0.0.1 mydomain.com 127.0.0.1 nowhere If I ping localhost or 'nowhere', I get an 'unknown host' error. If I ping mydomain.com, ping succeeds,…
Rdbhost
  • 293
  • 1
  • 2
  • 8
8
votes
2 answers

How to create an alias for a named SQL Server instance

On my developer computer I have an SQL Server instance named developer_2005. In the resource setting files of a C# application we are creating, the instance name is set to foobar (not really, but just as an example). So when I run the application…
Svish
  • 6,627
  • 14
  • 37
  • 45
7
votes
6 answers

SSH login using public key failed

On localhost running sshd service. Created two pairs of rsa keys for root and user1 using ssh-keygen. Copied from root/.ssh/id_rsa.pub to user1/.ssh/id_rsa.pub. Changed permissions to 600. Tried ssh -l user1 localhost and ssh -l root localhost but…
J.Olufsen
  • 293
  • 2
  • 3
  • 9
7
votes
3 answers

Curl request wont resolve to localhost

I have an ubuntu server running apache on localhost / port 80. It's domain is sub.domain.com If I make a curl request to http://localhost on that machine it will error with 'couldnt connect to host' immediately. If I make a curl request to…
Ashley Smith
  • 73
  • 1
  • 1
  • 3
7
votes
3 answers

Is it safe to add additional 127.0.0.1 entries to /etc/hosts?

I want to add this entry: 127.0.0.1 api.localhost To test the api of my web app. However, the hosts file says: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this…
user42235
7
votes
4 answers

How to access localhost by IP address?

I am trying to access localhost by my IP address. My IP address is/was 217.164.79.62 (It is set to be automatically assigned so it keeps changing). When I visit http://localhost/, I get the XAMPP homepage. However, when I visit…
Malte Werschy
  • 105
  • 1
  • 1
  • 2
7
votes
3 answers

IIS asks for login/pass when accessed using hostname but not when 'localhost' is used. Why?

I have setup IIS on my xp machine and have setup a default homepage (that comes with the IIS installed). It is a help page I think. when I access the page with http://localhost it works fine (IE/Chrome or FF) but when I access it using…
sb.
  • 73
  • 1
  • 1
  • 4
6
votes
3 answers

Can I access Cassini from a remote machine?

So I'm having that browser compatibility party we all have at some point in a web project and want to access my localhost Cassini instance created by VS2008 rather than having to upload to our repository/deployment environment to check when IE6/7…
Denis Hoctor
  • 163
  • 1
  • 5
6
votes
1 answer

Port 80: connection refused. How to fix on Mac OSX?

I've noticed some issues with Apache virtual hosts on two Macs that otherwise have the same kind of set up (in terms of httpd.conf, vhosts, hosts etc.) On one Mac, virtual hosts are served without a glitch, on another, I am getting connection…
Tench
  • 351
  • 2
  • 3
  • 8
6
votes
2 answers

Configure Dovecot to only let localhost connect via imap

How do I configure the Dovecot message delivery agent to only allow imap connections from localhost?
linus1412
  • 355
  • 1
  • 3
  • 6
1
2
3
35 36