Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [localhost]

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

3
votes
2answers
190 views

Difference between 127.0.0.1 and 127.0.1.1? [duplicate]

In my /etc/hosts file, I have two lines: 127.0.0.1 localhost 127.0.1.1 hostname What is the difference between the two lines, where do I find the host name?
0
votes
1answer
24 views

Postfix SMTP on port 587 errno connection refused only from localhost

If I connect from a website from the localhost (127.0.0.1) with port 587 and STARTTLS to my smtp-server on mail.example.tld, I get the the error "Connection refused, errno 111". Connections from a ...
0
votes
1answer
33 views

Squid proxy does not consider localhost traffic

I installed squid on Kali linux, configured my browser to send whole traffic through squid. However, squid doesn't consider localhost traffic. Actually, I run this command to check log file while I'm ...
-3
votes
1answer
40 views

abcdefg.com resolves to 127.0.0.1. Why? [closed]

This domain abcdefg.com doesn't use to resolve to anything. Suddenly it started to resolve to 127.0.0.1. I can see this happen in my corporate network, my home network and even on my mobile network. ...
0
votes
1answer
102 views

`proxy_pass https://127.0.0.1:3000` led to `502 bad gateway`

I have the following nginx blocks in /etc/nginx/sites-available/default. As a result, my website http://www.funfun.ink/1/#/home can be redirected to https://www.funfun.ink/1/#/home and loads well. ...
1
vote
0answers
93 views

Match address rule in sshd_config, , difference between localhost, 127.0.0.1 and [::1]

I would like to understand why these three rules in sshd_config behave differently : Match host localhost PasswordAuthentication yes Match address 127.0.0.1 PasswordAuthentication yes Match ...
0
votes
2answers
39 views

IIS 7.5 Domain Restriction working but not IP

We have a web service that we are trying to impose access restrictions on in production. This web service lies on LAN based internal server. It is called from web applications sitting on the same ...
0
votes
0answers
19 views

Application deployed on GlassFish to listen only to localhost

I have several applications deployed on GlassFish and I need one of them to listen only to localhost. How could I do it? Thanks.
0
votes
1answer
115 views

Overriding the DNS for a domain is not working

My clients' website is live at this moment, and I am migrating the website to my new Web Hosting Server. I already uploaded the site to the new server. Before changing the DNS, I am testing the site ...
-1
votes
1answer
193 views

Why do the port change when sending TCP data on localhost [closed]

I'm new to network programming and I'm starting simple. I got 2 simple python scripts both running on my machine, a server and a client, the client sends some data using the port 80 and the server ...
0
votes
0answers
27 views

How to configure IISManager and file hosts to run localhost:3000 by gulp is ready?

I'm trying to run an angularjs project that using gulp to build applications First, I cd to the directory that contain the gulpfile.js file and type gulp serve Then I moved to C: \ Windows \ ...
0
votes
0answers
29 views

Can't reach native ip 192.168.1.5 via Browser(Windows Server 2016 Datacenter)

On a Windows Server 2016 Datacenter The default website can be accessed by local host and 127.0.0.1, but native IP(192.168.1.5) cannot be accessed. What could cause this issue? iis bind localhost ...
0
votes
1answer
93 views

Nginx static file configuration for CenotOS 7 Minimal Installation

I have a brand new VM with CenotOS 7 Minimal Installation. What I want to happen is to configure Nginx to serve static files from a directory on localhost:80. My directory is /home/kenny/projects/...
0
votes
1answer
860 views

500 Internal Server Error with nginx local host

I am using Linux Mint 17. I am trying to setup PHP 7.1 or PHP 7.2 with nginx but whenever I access a php script I get 500 Internal Server Error. Whenever I restart nginx or PHP, I receive no errors. ...
0
votes
0answers
459 views

OpenVPN to connect to remote server on localhost at specific local port: “UDP: Can't assign requested address”

I'm trying to set up an openVPN locally to a remote server but bound to a specific port on localhost so I can route specific traffic through it. I'm using homebrew's openvpn and a node.js cli wrapper....
0
votes
0answers
140 views

nginx config multiple hosts - for flower celery as a subdomain - 504 Gateway Time-out

I posted it in stackoverflow but I think here is better place for it. I have this issue where my subdomain nginx config with proxy_pass does not work -- gives me 504 gateway timeout all the time.. ...
0
votes
1answer
32 views

What happens if i connect to a used localhost port?

Im new to this discipline, so please just dont blast me. I have Apache in localhost. localhost:8080 Is it correct to say that 8080 is the port used to comunicate beetween client and server ? What ...
1
vote
2answers
121 views

127.0.0.1 vs external IP performance on Ubuntu 16.04

On my Ubuntu 16.04 machine, I've two services A & B. Service A calls Service B using 127.0.0.1:Bport... Does it change anything, in terms of performance to call <externalIp>:Bport instead ? ...
1
vote
1answer
217 views

adding string & variable to another variable in bash script

I've tried to create a bash script to show all available local IP addresses. Since the normal ping option can't go quicker than 1 second per IP address and fping shows too much output when executed in ...
1
vote
1answer
29 views

How do I use my computer as a host for a website - given my IP is static? [closed]

I search online a lot for this but I was not able to find out how. My ISP gave me a static IP address. Now, I connected this ISP Line to a DLink DIR-850L and then put a LAN cable from the router to ...
0
votes
1answer
35 views

Is it a security risk to run a local node server next to public web api?

I am currently running a public web api that runs on PHP. I was thinking of adding a local node server with which the PHP can interact. It would allow me to do stuff like passing off long running ...
0
votes
1answer
371 views

localhost domain bypasses /etc/hosts file

I'm trying to create a development environment with .localhost as the FQDN. I'm using Local by Flywheel which is basically MAMP, its a GUI which lets me create vagrant boxes. I can create a site such ...
0
votes
1answer
79 views

Is it possible to have full SSL security on localhost services?

I've been reading a lot about SSL certificate as of late and trying to get my localhost services to have SSL certificates to avoid warnings and whatnot. These services are 100% local, their ports are ...
0
votes
1answer
257 views

Nginx redirecting every url to localhost

I have a Django website running with Nginx and Gunicorn. Everytime I call a url on the server, example website/url, it redirects to localhost/url. I have given the nginx settings in both nginx.conf ...
0
votes
2answers
95 views

How to mirror aws ec2-instance (production) to my local ubuntu desktop

i have aws ec2-instance live server (which runs on drupal CMS), i want to make a staging server for that live on my local ubunut desktop
0
votes
0answers
57 views

Different hostname and servername in Apache

So I am pocking around in Apache 2.4 and I found this info.php says that Hostname:Port is www.example.com:80 , in the "apache2handler" part. And then it says SERVER_NAME is localhost , in the "Apache ...
-1
votes
1answer
770 views

Unable to ssh localhost without password despite proper perms, key in authorized_keys

I have a key ~/.ssh/id_rsa and I added the pub key to my authorized keys: cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys I also changed my permissions to 600: sudo chmod 600 ~/.ssh/...
-3
votes
2answers
571 views

How to access 127.0.0.2 3 etc to other computer/network over LAN?

I have 2 computer(A n B) which connected same wifi. If i want to access my localhost(127.0.0.1) from computer A to B i just enter LAN IP(example http://192.168.99.5) on computer B. But how to access ...
0
votes
1answer
53 views

Postfix google network is not reachable from server but its reachable with same configs on local

This is my main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the ...
0
votes
2answers
168 views

Create DNS for a wilcard subdomain that is localhost

I'm trying to create DNS for wildcard subdomains that run on localhost. It's not working. The main domain is fine but the sub domains are pointing to an external server instead. Here's what I have: ...
-1
votes
1answer
106 views

How to backup database on localhost when cannot connect to MySQL?

I'm having 'HY000/2002): connection refused' issue with Lampp on Linux Mint on localhost. It just started to act this way with no known reason. I've spent hours to fix the problem, no solution yet. ...
0
votes
1answer
340 views

Mongod service running but not connecting in browser

Background: Using vagrant virtual box running Ubuntu on a macbook Having installed the mongoid gem in a new rails application I am given localhost:27017 as the port that the mongodb server is ...
0
votes
0answers
90 views

localhost send SYN to localhost not receiving ACK

My server setup is nginx directly connects to a node.js server (nginx and node.js are in the same node and nginx is forwarding request to node.js: 127.0.0.1:8000). The symptom is sometimes there are ...
0
votes
0answers
624 views

MYSQL: Aborted connection to db: 'unconnected' user: debian-sys-maint' host: 'localhost' (Got timeout reading communication packets)

I recently migrated all my logs to a new service, where I could see a recurring bug in mysql. The message is the following: Aborted connection <NUM> to db: 'unconnected' user: debian-sys-maint'...
0
votes
2answers
557 views

Proxying only subdomains of localhost

I'm trying to figure out how to proxy requests to subdomains of localhost to another port on Apache, but not proxy requests only to localhost (with no subdomains). I can't get it to work. Here is what ...
0
votes
1answer
498 views

Is 127.0.0.1 a routable IP address

Hi I have a app that I am working on. I have the DNS entry me.myappdomain.com that has dns entry points to 127.0.0.1 When my app starts up, it talks locally to a server I have on each device. I ...
0
votes
0answers
419 views

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

App running in subdirectory but needs 8080 port access, can't figure out reverse proxy

I'm very new to managing a server, so please bear with me. I have a cloud server from Microsoft Azure (not by choice) running Ubuntu 16.04 and Apache 2.4.18. I have multiple apps (/omeka, /wordpress, ...
0
votes
2answers
3k views

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 ...
1
vote
1answer
2k views

Nginx SSL on localhost

I am trying to configure SSL on my localhost using Nginx. I created a self-signed certificate and my Nginx configuration is as below: server { listen 443 ssl; server_name localhost; root /usr/...
1
vote
1answer
2k views

localhost port 8080 doesn't respond but using 127.0.0.1:8080 does work

When I try to access locahost:8080, I get The localhost page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE but if I try: 127.0.0.1:8080, I get the response I'm looking for I ...
0
votes
2answers
756 views

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 ...
2
votes
2answers
1k views

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 ...
-1
votes
1answer
192 views

Conflict with Chrome and RFC2606

RFC2606 states the following for the "localhost" tld: The ".localhost" TLD has traditionally been statically defined in host DNS implementations as having an A record pointing to the ...
0
votes
1answer
695 views

Apache not running - “refused to connect” error [duplicate]

I am on Mac Yosemite. Apache 2.4.16. My localhost and local sites stopped working. They've been working fine for months now until I tried to update/fix MySQL. I get the following error: This site can’...
-1
votes
1answer
27 views

Linux: setup development localhost editable environment (permissions issue)

I have an Ubuntu distribution with a localhost setup in /var/www/html/mysite working properly. The problem I have is, when I edit files in this folder, I must do as root or www-data which is not ...
0
votes
1answer
510 views

How to redirect only localhost traffic in IIS 8

I have IIS 8 and I need redirect only localhost requests to one page to another page on the same IIS. I tried it with URL Rewrite module and Conditions but maybe this is wrong way...
1
vote
1answer
28 views

How can I see what is utilizing my localhost interface?

I have a webserver that has almost 4mbps of sustained traffic on the localhost interface. How can I tell what is causing that?
2
votes
1answer
597 views

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

Local web app not resolving localhost

I have a local web site called http://localhost.example.com but now when I try to open it in a web browser it redirects me to http://www.example.com. This used to work before. What I changed in the ...