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
2
votes
5 answers

127.0.0.1 is working but localhost is not working on mac XAMPP

I installed XAMPP on my mac months ago and was working great. Now i get "Test Page For Apache Installation" when i try to browse /localhost and /localhost/xampp is not found. But when i browse /127.0.0.1 it just works as localhost used to be. I…
user23416
2
votes
4 answers

Localhost or real hostname (real IP)

Lets suppose that I need to send data from one services to other on the same host. For this I can use localhost:port or real.domain.name:port (lets think that it cached or can be resolved by local dns). I am sure that better to use localhost:port…
ipeacocks
  • 321
  • 1
  • 3
  • 10
2
votes
1 answer

When connecting to localhost, does a full SYN, SYN-ACK, ACK handshake still occur?

This question is addressed, primarily for Linux. While I could find the answer myself, I'm hoping someone out there just knows the answer implicitly and can save me some time. If I'm connecting to a socket oriented service, like an HTTP server for…
2
votes
8 answers

localhost went "It works!" - and nothing else

I'm working with Mac's built in Apache, and everything was just great UNTIL - something went wrong. I think it's the .hosts file. http://localhost results with "It works!" message, while any /[foldername] cannot be found. However, 127.0.0.1 works…
konzepz
  • 209
  • 1
  • 2
  • 7
2
votes
2 answers

IE on VirtualBox to visit http://localhost on Mac OS X host

I use VirtualBox on my Mac to run IE for testing, but sometimes I want to test http://localhost. Is there a way to do that?
Stella Peristeraki
2
votes
1 answer

How to use non-deprecated tools like ss to get process id running on a port?

I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000 to output information about an active port. Any suggestions on how to use a tool like ss to get the process id? I have a localhost running on port 8000, but…
modulitos
  • 335
  • 1
  • 3
  • 16
2
votes
1 answer

Can't access local apache virtualhost using Chrome

I have a few virtualhosts on my localhost apache, here's the config of one (the others just change the letters before .localhost) ServerAdmin admin@dev.localhost ServerName dev.localhost ServerAlias dev.localhost …
Henrique Arthur
  • 123
  • 1
  • 1
  • 4
2
votes
1 answer

Port redirection with iptables to localhost / blocking the destination port

I like to forward all traffic coming to 80 to be redirected to 8000. I used iptables -tnat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8000 But then port 8000 is still open to public. I tried -DNAT: iptables -t nat -A PREROUTING …
Phil
  • 213
  • 2
  • 6
2
votes
1 answer

Centos services cannot bind on localhost but find on * or specific ip address

I've got a VPS with Centos 6.4 installed. I used to have a VPS at Digital Ocean that when I start PostgreSQL or Monit that bind to localhost, they all work fine. But on the new VPS, when I have PostgreSQL listen to "localhost", PostgreSQL is…
Phuong Nguyen
  • 703
  • 1
  • 11
  • 27
2
votes
4 answers

MySQL Database is DROPPED can I recover it (on localhost)

Is there anyway to get my database back? I've dropped it accidentally.
Omar Al-Ithawi
  • 180
  • 1
  • 9
2
votes
1 answer

Local SSH connection to Gitlab not working

I'd like to be able to clone, push and pull (via SSH) on my Gitlab-Server from/to itself. Currently, when try to clone a git repository locally from my server I get this: jacob@server: git clone git@git.example.com:project.git fatal: 'project.git'…
jacob1123
  • 121
  • 1
  • 4
2
votes
2 answers

Subdomains on localhost

It is possible to use wildcard in /etc/hosts file? For example, im developng the application that will have user-defined subdomains, like "user1.foo.bar", "user2.foo.bar". Im looking for something like this: 127.0.0.1 foo.bar 127.0.0.1…
Dan Sosedoff
  • 237
  • 1
  • 4
  • 11
2
votes
3 answers

Access 127.0.0.1 on a local network

I usually write code, not administer servers, so bear with me here! I'm running a python script to act as a webserver and I also have Apache installed on the same machine. When I run the python script, I get the success message: Running on…
Todd Davies
  • 121
  • 1
  • 4
2
votes
3 answers

iptable localhost connections reported to be blocked, but work ok

I am using fwbuilder and have tried setting up rules that both allow lo interface and source ip 127.0.0.1, as follows: $IPTABLES -A INPUT -i lo -m state --state NEW -j ACCEPT $IPTABLES -A OUTPUT -o lo -m state --state NEW -j…
Yoav Aner
  • 531
  • 2
  • 6
  • 13
2
votes
1 answer

How do I get a subdomain on Xampp Apache @ localhost?

****UPDATE- I got it working now, I just had to change to The port number is important here.** I just modified my windows HOST file @ C:\Windows\System32\drivers\etc and added this to the end of it 127.0.0.1 images.localhost 127.0.0.1…
JasonDavis
  • 2,658
  • 6
  • 25
  • 32