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
549 questions
3
votes
2 answers

Ignore HSTS in browser for a subdomain

[copied from https://stackoverflow.com/questions/39937837/] I've got my DNS set up to point local.example.com to 127.0.0.1. This is so that I can share cookies between the live site and my dev environment. With HSTS activated on the live site, my…
EoghanM
  • 560
  • 2
  • 7
  • 15
3
votes
1 answer

Is it important to use localhost/127.0.0.1 rather than machine's own IP address?

I'm on Amazon AWS EC2 running Amazon Linux, though that may not be significant to the answer. Say I have three hosts, H1, H2, H3, with private IP addresses of 10.0.0.1, 10.0.0.2, and 10.0.0.3. This could be represented in a /etc/hosts file with…
sootsnoot
  • 405
  • 1
  • 5
  • 12
3
votes
1 answer

Will it detriment my security if I allow all connections from localhost through iptables?

Under my current configuration, iptables will block every inbound connection, even if coming from localhost. In some cases, I need localhost to connect to itself. If I create a rule that allows all inbound connections from localhost, will this…
user346974
3
votes
3 answers

Redhat doesn't set my desired hostname on reboot

I have a redhat (EL5) server that I need to change the hostname on. I'm trying to put it back into a known state to help with server provisioning activities. As part of changing the hostname, I'm updating /etc/sysconfig/network and /etc/hosts. I…
tomdee
3
votes
3 answers

Need help setting localhost

Help! I'm trying to convince my Apache to point localhost to /Sites. What am I doing wrong? httpd.conf settings Options FollowSymLinks AllowOverride None Order deny,allow Deny from all
konzepz
  • 209
  • 1
  • 2
  • 7
3
votes
0 answers

Getting 503 when trying to run Classic ASP on Win7 and IIS7.5

I am being asked to resurrect a classic ASP application for temporary use. Wonderful. Well, the pay's the same, so I am now trying to get the thing to run on my localhost so I can test it and so on. I have copied all the files to…
Cyberherbalist
  • 337
  • 1
  • 4
  • 14
3
votes
1 answer

HTML served from localhost is being modified by ISP

I took my laptop to a local restaurant yesterday to do some work setting up a new web app. I get the server in place, and created a simple HTML page: Hello, world. I start the server (Jersey), and then issue the…
jchilders
  • 143
  • 3
3
votes
3 answers

DNAT from localhost (127.0.0.1)

I'd like to set up a TCP DNAT from 127.0.0.1, port 4242 to 11.22.33.44, port 5353 on Linux 3.x (currently 3.2.52, but I can upgrade if needed). It looks like the simple DNAT rule setup doesn't work, telnet 127.0.0.1 4242 hangs for a minute in Trying…
pts
  • 435
  • 1
  • 5
  • 16
3
votes
3 answers

Redirect localhost requests to a Linux container

I run a few Linux containers, each running a webapp, on my Ubuntu host. To access the webapps, I use iptables to forward port: sudo iptables -t nat -A PREROUTING -p tcp --dport -j DNAT --to-destination #: This work well…
rmonjo
  • 231
  • 2
  • 4
  • 12
3
votes
2 answers

When using netstat on a listening port what is the difference between localhost:6666 and [::]:6666 in 'Local Address' field

Using ubuntu 11.04, I run netstat -nplt the results for local address may be localhost:6666 or [::]:6666 What is the difference? I believe that the [::]: binds the service at port xxxx to all interfaces, (lo, eth0, eth1 ) and …
Dave
  • 367
  • 2
  • 5
  • 11
3
votes
1 answer

ssh localhost exits with "debug1: Exit status -1 "

I am trying to setup ssh and ssh to localhost on Cygwin, but I am getting the following error. Any suggestions will be appreciated: $ ssh -v localhost OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data…
fixxxer
  • 131
  • 1
  • 1
  • 4
3
votes
1 answer

Kerberos & localhost

I've got a Kerberos v5 server set up on a Linux machine, and it's working very well when connecting to other hosts (using samba, ldap or ssh), for which there are principals in my kerberos database. Can I use kerberos to authenticate against…
Alex Leach
  • 1,697
  • 3
  • 16
  • 18
3
votes
2 answers

Nginx: All local IP addresses redirect to Nginx

For some reason, any local IP address in the 127.xxx.xxx.xxx range redirects back to the default 'Welcome to nginx!' page. From my experience with Apache, only the 127.0.0.1 IP address would resolve back to the apache web server. How can I make…
Ben
  • 33
  • 3
3
votes
0 answers

haproxy tcp transparent mode on the same box as service

I'd like to set up transparent HA Proxy for TCP protocol. It works flawlessly when HA Proxy is in front of the boxes that are running the service. But when I try to set up HA Proxy in transparent mode to load balance connections to a service that is…
Filip
  • 31
  • 1
3
votes
1 answer

Do local cURL requests count towards my network transfer limit?

I have a purchased a hosting that allows me 10 GB of monthly transfer. Will this 10 GB of transfer be affected if I make some cURL requests, from-a-script-to-a-script on the same server (in this case it's a kind of "local-request")?