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

Questions tagged [localhost]

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

-1
votes
1answer
42 views

Test ansible role on localhost

How can you test(-run) an ansible role on your localhost? So far I have done this on my ubuntu 16.04 machine: $ sudo apt-get update $ sudo apt-get install software-properties-common $ sudo apt-add-...
0
votes
1answer
22 views

Proxy a remote server as localhost

There is a server running in a "remotehost:some_port". I can connect to it from my linux machine like telnet remotehost remoteport. I have an application in the linux machine that is configured to ...
-2
votes
1answer
19 views

server not listening on port 5432 [duplicate]

My localhost is Apache Tomcat. The server is not accepting connections and I am getting error message connection to localhost refused on GeoServer and PostgreSQL 9.5 on port 5432. I used the ...
0
votes
0answers
66 views

RabbitMQ does not listen to localhost on Windows

I would like RabbitMQ to only listen to localhost interface. I am installing RabbitMQ on a Windows machine. The following threads seem to document everything to do. thread 1 and thread 2 Here is ...
3
votes
2answers
295 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
121 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
124 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
44 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
307 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
181 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
103 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
42 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
133 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
366 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
48 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
32 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
195 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
1k 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
553 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
185 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
33 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
152 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
240 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
441 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
128 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
296 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
105 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
-1
votes
1answer
935 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
614 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
78 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
208 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
117 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
415 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
96 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
688 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
652 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
584 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
470 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
396 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
1k 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
199 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
740 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
664 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...