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

sendmail localhost host name lookup failure

I am starting to see a certain type of email that is causing problems for our users. I am running sendmail on Fedora with mimedefang-filter. When this certain type of spam comes in with random characters in the subject and body, it eventually…
xivix
  • 553
  • 2
  • 8
  • 16
2
votes
2 answers

Access site without domain name via IP address on server with multiple virtualhosts

I have a single Digital Ocean droplet with 5 websites hosted on it via virtualhost. Everything works fine. Their domain names point to each one individually. Using Ubuntu 14.04 and Apache. I want to add a sixth "test" site, without a domain name…
2
votes
2 answers

How do I force localhost resolution to be 127.0.0.1 instead of ::1?

I'm running Windows 10 x64 and I have a legacy application that doens't work fine with localhost being translated to ::1, but instead it works for 127.0.0.1. How do I force Windows 10 to resolve localhost to 127.0.0.1? I've already edited the hosts…
gremo
  • 339
  • 1
  • 4
  • 20
2
votes
1 answer

Fix 'ERROR - Unable to set localhost. This prevents creation of a GUID'

My program is working fine but seems I have to set 'set localhost'. Should I do this or it's optional? How to fix in case I should? -sh-4.1$ sh interproscan.sh -i test_proteins.fasta -f tsv -goterms 30/05/2016 14:42:21:909 Welcome to…
biotech
  • 117
  • 1
  • 4
2
votes
2 answers

Accessing PC localhost from Mac over WiFi

I have a web service running on the localhost of my PC. I set up an ad hoc local wifi network and I would like to access the web service from my Mac. Can this be done? What would the url to my web service be? …
Bryan
  • 149
  • 1
  • 3
  • 10
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
  • 223
  • 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
  • 12
  • 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