Questions tagged [localhost]
Localhost is an address/term used for testing connection to the local host (current computer) used for some network troubleshooting
546
questions
0
votes
0
answers
37
views
TCP connect <--> accept with INADDR_LOOPBACK range
I have some production code for a distributed system. Part of this code works by looking up (already established tcp) connections in a hash table, indexed by remote ip address. This code works ...
0
votes
0
answers
321
views
Windows 11, localhost / 127.0.0.1 port number changes on invocation
I'm testing a fastapi http server on Windows 11 running on 127.0.0.1:8000. In another terminal, a request is sent to the server on 127.0.0.1:8000. The result is a Bad Request and the server says it ...
0
votes
0
answers
21
views
3% of Sendmail Localhost Relays are Deferred
Using Debian 10.3 and Sendmail Version 8.15.2, mail being sent with relay=[127.0.0.1] results in stat=Deferred: Name server: [127.0.0.1]: host name lookup failure. This occurs only 3% of all localhost ...
0
votes
0
answers
2k
views
cURL error 7: Failed to connect to localhost port 443: Connection refused
OS version: Ubuntu 20.04 x86_64
Plesk version: Plesk Obsidian 18.0.47.5
Hi,
I am running XenForo Forum on my Plesk which running behind Cloudflare.
I get following erro log, which is showing me that ...
0
votes
0
answers
43
views
How to access pods from local terminal?
I have a Kind cluster installed on my Ubuntu machine. I have deployed few pods on the cluster and can see they're running using kubectl get pods command.
As my pods are some NodeJS services and a ...
0
votes
1
answer
134
views
Can I tunnel all ports from remote server to 127.0.0.2 (for example), so work with it like with localhost
I have a remote server.
I started on remote server app that listen localhost only.
I want to tunnel this server to local ip like 127.0.0.2 and access this app through like I on remote server.
I need ...
1
vote
1
answer
169
views
NGINX: localhost redirecting to _
nginx version/1.18.0 (Ubuntu) — Ubuntu 22.04.01 LTS x86_64 kernel 6.0.8
I've got a server (install specs above) that has multiple host names, is running nginx, and everything is working (including ...
0
votes
0
answers
525
views
Localhost not working with vue.js
Im new using vue.js, so I just installed vue.cli and I tried localhost:8080 and it worked perfectly showing the vue welcome page. Then, 2 minutes later, localhost is not showing the page anymore (...
-2
votes
2
answers
2k
views
macOS: How do I expose a localhost port to the LAN IP on the same computer?
On a Raspberry PI I have, whatever I run on, say, http://localhost:8080, is automatically visible to other computers on my local network at http://192.168.0.xxx:8080 or http://pi.local:8080.
This ...
1
vote
0
answers
99
views
how to set up nginx aliases on a localhost development server?
Struggling to adapt nginx to my framework and get the equivalent of, in apache config :
Alias /site1 "/home/framework/public_HTML"
(and then localhost/site1 displays site1 with local/dev ...
0
votes
1
answer
1k
views
Can't make v2ray to send DNS queries to its localhost
There are two v2ray servers A and B with similar configurations but A works as an intermediary (vmess+websocket on both inbound and outboud) to reach B.
I want to make A to send incoming DNS queries ...
0
votes
0
answers
84
views
unable to load files in /var/www on localhost
I don't know why, but until recently, I could load files located in /var/www/ by typing the folder name in my browser, and I could load files located in /var/www/html by using localhost/<>
Now, ...
0
votes
0
answers
35
views
My GCP compute instance isn't receiving any port traffic
const express = require('express') const app = express() const port =
9093
app.get('/', (req, res) => { res.send('Hello World!') })
app.listen(port, () => { console.log(Example app listening ...
0
votes
3
answers
608
views
Apache 2.4 can connect localhost but not IP
Im using Laragon to connect everything together:
httpd.conf
#Listen 12.34.56.78:80
# Listen 80
# Listen 80
# Listen 0.0.0.0:80
Listen 80
#
#ServerName www.example.com:80
ServerName :80
#
# Deny ...
0
votes
1
answer
23
views
How to create a local host that can be accessed through everyone on the same internet?
I've had an Apache Virtual Host working for a couple of month where workers on the office wifi could type in something like www.XYZ123.com and was able to access the website through their browser.
Now,...
0
votes
1
answer
188
views
How can I create a self-signed certificate that works with the browser?
I have been trying to create a self-signed certificate. The Firefox browser says the certificate is "not secure."
I created the certificate following this SO explaination: Is it possible to ...
0
votes
1
answer
709
views
Why is *.localhost resolved automatically on Ubuntu but not on MacOS?
I have the same hosts file on both Ubuntu and MacOS.
127.0.0.1 localhost
On Ubuntu:
my-ubuntu$ ping foo.localhost
PING foo.localhost(ip6-localhost (::1)) 56 data bytes
64 bytes from ip6-localhost (:...
0
votes
1
answer
1k
views
How can i host a local website to domain using nginx?
I have a server that is running at 127.0.0.1:8323
This port is not reachable from outside.
I want to provide this ip address as https://example.com/website/index.php over the port 80
How can i do this ...
0
votes
1
answer
432
views
Open up localhost port to outside world
I have a http service running on localhost port 8080 on a centos 7 machine. Is there any way I can route / port forward incoming and outgoing traffic through my external interface. So, mapping 127.0.0....
0
votes
1
answer
1k
views
Perforce client AND server no longer connecting, 127.0.0.1:1666 refusing all connections on server, even local connections
I have a server running Ubuntu server 18.04, and it's the catch-all local server - hosts a samba share, media server, and a Perforce server. I connect to that depot via a local network IP (ssl:192.x....
0
votes
0
answers
82
views
How do you whitelist localhost from Avast anti-virus software?
Billy-G's bloated legacy is frustrating me tremendously. I installed Avast anti-virus software. I'm trying to learn React and now the damn anti-virus software is blocking the Local Host and my ...
0
votes
2
answers
1k
views
Apache Proxypass redirects "localhost:port" as url string instead of local service of the port
Environment
Server version: Apache/2.4.6 (CentOS)
I have two servers which are almost duplicates.
aaa.com. and bbb.com.
They have almost same Apache rulesets.
aaa.com. config
<Location "/...
0
votes
0
answers
17
views
How do I create a Virtual Name Host on Apache2 for a service running on localhost:8080 [duplicate]
i have a server with apache that runs a mailing service, a wordpress multisite
I have followed guides online to make the above work
now I have a service from Vaadin (java stuff) running on localhost:...
1
vote
1
answer
2k
views
mariaDB 10.5.12 access denied for root@127.0.0.1
fresh installation of mariaDB 10.5.12 on debian 11 was hardened with 'mysql_secure_installation' script, question "Switch to unix_socket authentication [Y/n]" was answered with 'yes'.
Now ...
0
votes
1
answer
81
views
(Theoretical view) In a DDoS attack via docker, no correlation found between the amount of sent packets and the number of virtualized containers
I have been testing a DDoS attack in my local network via docker. Each image has loaded with an "evil" DDoS file.
I tested simultaneously several containers attacking at the same time. On ...
1
vote
1
answer
2k
views
How to use smart websocket client from Windows to connect to a running websocket server on virtualbox?
Here is my setup:
Windows 8.1 with Ubuntu 18.04 within VirtuablBox 6.0
Run a websocket server at 127.0.0.1:8083 within VirtuablBox
Within the VirtuablBox, I can connect to the websocket server with ...
3
votes
0
answers
3k
views
Docker service unreachable on host-IP, but works on localhost
I have a similar problem to this post here, though I don't think my IP ranges collide: https://forums.docker.com/t/service-is-unreachable-on-host-ip-localhost-works/78515
I'm exposing a webserver via ...
0
votes
2
answers
649
views
How to make localnetpriority / netmask ordering work on Windows DNS server when it queries itself?
We are utilizing Windows 2016+ DNS servers. We rely on LocalNetPriority on our DNS servers. We have several Active Directory DNS servers across multiple sites. The expected behavior is that when a ...
-1
votes
3
answers
536
views
how to connect to one of multiple virtual sites (apache 2.4)
If I create one site, I can access it with http://localhost ...
But if I create multiple virtual sites, with apache, on the same computer, http://localhost won't work.
How can I access it? (on the ...
0
votes
2
answers
33
views
Connecting to lcoalhost from VM
I am using windows 10 on my local computer, and I'm building an app that requires using Linux OS, therefore I'm using an Ubuntu Virtual Box.
I installed Vagrant, and set SSH connection from my windows ...
0
votes
1
answer
397
views
mysql user@% can access from localhost
I was always told that "%" means every host except localhost.
However I have created a user4@"%" and I can connect to from localhost.
screenshot
So now I am a bit confused ...
0
votes
0
answers
16
views
Apache WampServer - Getting "It works!" only with https [duplicate]
I am using WampServer 3.2.3 (Apache 2.4.46) and I added an SSL certificate on a virtual host, but when I go to this virtual host's whebsite with http, it displays the configured page.
The problem is ...
0
votes
0
answers
107
views
Rewrite to https://localhost:8000 rather than https://localhost
I use nginx in my MacOS to test third-party authentications such as Google and Twitter in localhost. As a result, on my local website https://localhost:8000/..., I could engage with www.funfun.io for ...
1
vote
0
answers
154
views
More explicit Nginx logs
I use nginx in my MacOS to test third-party authentications such as Google and Twitter in localhost. As a result, on my local website https://localhost:8000/..., I could engage with www.funfun.io for ...
0
votes
0
answers
213
views
Debug third-party authentications in localhost with docker and nginx
We have a website where we just added third-party authentications such as Google, Twitter. I'm trying to test these authentications in localhost (MacOS).
I'm running a docker to run nginx, here is ...
0
votes
0
answers
518
views
nginx reverse proxy not serving local domain correctly
I want to resolve a few domain names locally in my computer. To do this I added in /etc/hosts the following line:
127.0.0.1 example.com
Then I configured nginx with the following config file example....
0
votes
1
answer
378
views
Proxy a website from Docker through Nginx without acting as localhost
How can I proxy a website from Docker through Nginx without it acting as localhost?
My current setup consists of an Ubuntu host with a couple of Docker containers with exposed ports. The Docker ...
0
votes
0
answers
763
views
Setting Apache on BigSur (returns ERR_CONNECTION_REFUSED)
Firstly I've read many tutorials, I'm trying for many hours during last days (because I know there were billion similar questions and tutorials for the same thing before) but I'm in the ends... :-(
...
0
votes
0
answers
907
views
Access the host's IP or loopback interface from Docker container
willnorris/imageproxy is a caching image proxy server that we use in one of our deployments. We typically have a PHP backend that will serve some html or json to a client where the URL would be http://...
0
votes
4
answers
932
views
How to forward my localhost to my VPS's ip address?
I am running a localhost service on my VPS.
When i start the service, this is what i get:
Navigate to https://127.0.0.1:7443 in a browser
The problem with this is that i can't open it in my browser ...
0
votes
0
answers
108
views
Change bin-address on mysql ubuntu 18.04
I'm trying to change the bin-address of my localhost database instance on a ubuntu 18.04 computer
i went to /etc/mysql/mysql.conf.d and then modified the file mysqld.cnf to assign the ip address i ...
0
votes
1
answer
3k
views
Connecting To 127.0.0.1…Could not open connection to the host, on port 8123: Connect failed
Well aware this has been asked, but I have scoured Google/StackOverflow and tried every single suggested solution, without being able to connect to port 8123 on my local (which is running Windows 10). ...
2
votes
1
answer
586
views
used colons for url htaccess http://localhost/1:1
I have a problem with the colons used in url
this my url
http://localhost/1:1
this my htaccess
RewriteEngine On
RewriteRule ^/(.*):(.*) index.php/$1:$2
this error show Forbidden You don't have ...
1
vote
1
answer
642
views
How does linux resolve wildcard locahost subdomains (e.g. : `ping test.localhost`) when `test.localhost` does not exist in /etc/hosts or dns server?
For example in ubuntu 20.04 LTS where the /etc/hosts file is empty:
>>> cat /etc/hosts
127.0.0.1 localhost
ping still works for any subdomain of localhost:
>>> ping test....
0
votes
1
answer
839
views
Will /etc/host file entries be transferred to VPN DNS Server?
I have several localhost entries on my local etc/host file. (in Mac "/etc/hosts" and in Windows "C:\Windows\System32\drivers\etc\hosts"
# LOCAL DEVELOPMENT
172.16.5.248 maxim.local
...
0
votes
1
answer
292
views
Postfix SMTP only localhost login - disable remote login
I have configured postfix + dovecot on a debain 10.
I have installed a web server to have webmail with roundcube.
I don't want anyone other than roundcube to be able to use mail services, so I'm only ...
1
vote
1
answer
237
views
How do ProxyPass from Apache to node.js so I can drop the port number in my local URL?
I'm trying to use a domain name for local development of a next.js app. Normally, it fires up at localhost:3000 but I'd like to use site1.local (and no port).
I've edited my hosts files to point the ...
0
votes
0
answers
254
views
NGINX Get local IP for proxy_pass
Is it possible to pass in a variable such as $server_addr into proxy_pass.
proxy_pass http://$server_addr:8096/;
If I do this, I run into issues where it doesn't load. Is this possible on what I'...
0
votes
1
answer
445
views
What is the difference between the loopback interface and the 127.0.0.1 IP address?
I am trying to allow connections between softwares running on the same machine in iptables.
The following kill my internet connectivity:
# The following rules doesn't allow the VPN connection to be ...
1
vote
1
answer
1k
views
Which Traefik config to replace Ngrok?
I have a server with a public IP and Traefik V2 running on it (dockerized).
I have localhost.example.com pointing to the server's public IP.
I can make a SSH reverse tunnel between my laptop and the ...