Questions tagged [localhost]
Localhost is an address/term used for testing connection to the local host (current computer) used for some network troubleshooting
558 questions
11 votes
0 answers
6k views
Http 2 Protocol error connecting to localhost web sites [migrated]
When connecting to a localhost web site using Visual Studio 2022 Community Edition, I receive the error: This site can’t be reached The webpage at site.x.localhost might be temporarily down or may ...
0 votes
0 answers
48 views
Management of different web domains associated to different servers running on the same machine
I have a local machine using Debian 12 in the company lab. On this local machine I have different servers running and reachable from different web addresses. Let's say the first one is reachable ...
-1 votes
1 answer
85 views
Email delivery failure
The response was: DNS Error: DNS type 'mx' lookup of comle.terre.defense.fr responded with code NOERROR DNS type 'aaaa' lookup of localhost. responded with code NXDOMAIN DNS type 'a' lookup of ...
0 votes
1 answer
105 views
iptables adding localhost once adds the rule twice
I am trying to whitelist memcached port 11211 on ipv4 with iptables v1.8.4: iptables -A INPUT -p tcp --dport 11211 -s localhost -j ACCEPT; Whenever I run that command, then listing the rules, that ...
0 votes
1 answer
125 views
Cannot access database from PHP script when called from web page
I'm running Ubuntu 22.04, nginx 1.18.0, mariadb 15.1 and PHP 8.1.2. Here the code of my database.php: <?php $SERVER_APP = "localhost"; $DATABASE_APP = "mydb"; $USERNAME_APP = &...
0 votes
1 answer
1k views
Error 403 Forbidden on localhost when accessing custom directory on Debian 12
I've installed PHP, Apache2, MariaDB, and PHPMyAdmin. Accessing localhost shows the "It works!" page. localhost/phpmyadmin also shows the phpmyadmin login page. I've added the directory that ...
0 votes
0 answers
379 views
Localhost routing through proxy when it should not be doing so
This is an issue a client is having. They have a proxy set up for all their web traffic but localhost (127.0.0.1) is also being incorrectly routed through the proxy. As you all know local traffic ...
0 votes
0 answers
291 views
Access local server by name in file explorer
I have a server at work with shared folders for several terminal pc to access. One of the terminals suddenly stopped being able to access the shared folders. The situation is like this: The pc CAN ...
0 votes
2 answers
396 views
Exclude local sub-net (local IP ranges)
In my company's VPN app we have a disable-able feature which excludes below List of non-web-site IP-address ranges from being routed into the VPN server. This allows local-net Apps to continue working ...
1 vote
1 answer
3k views
mysql bind-address change from 127.0.0.1 to server's IP Address breaks websites
I'm trying to setup mysql replica. On master when I change bind-address value in my.cnf to server's IP address some of websites break as they are using 127.0.0.1 as database host value. There are few ...
0 votes
0 answers
225 views
Bypass DNS rebinding for localhost
I am encountering more and more issues with an app I created that binds to 127.0.0.1 on an obscure port. I have a domain name - due to needing an SSL cert - that resolves to 127.0.0.1. I have this ...
0 votes
2 answers
1k views
Mysql bind-address local subnet only
I am trying to allow users on my local subnet to log into my MySQL server. The server is running Ubuntu 23.10 and MySql version 0.0.35-0ubuntu0.213.10.1 The Clients are 2 iMacs with macos Sonoma 14.2....
-4 votes
1 answer
60 views
Is it possible to connect my hp laptop localhost IP to in my MacBook through localhost IP address? [closed]
I have two laptop first is HP and second is MacBook Now I want to use HP localhost IP to in my MacBook through localhost IP address Is it possible?
0 votes
0 answers
1k views
Cannot connect to website through reverse proxy on local network
I'm having this strange issue. I have a local network running a server with my gitlab instance and some webpages. The configuration of my reverse proxy is following: server { server_name my.website....
-1 votes
1 answer
2k views
"[Errno 2] No such file or directory: b'net'" when trying to use Ansible localhost to connect to a Windows Shared Folder
I am unable to use Ansible localhost (Linux) to connect to a shared folder on a Windows Server. I am getting [Errno 2] No such file or directory: b'net'. However, I have checked that my file path to ...
0 votes
1 answer
639 views
Lost Local Connection to MySQL DB that resides in AWS RDS
The MySQL DB residing in AWS RDS was made to connect with resources in the same VPC. I always had to make it publicly accessible in order to connect to it through MySQL Workbench 8.0 CE in Windows 11. ...
0 votes
0 answers
1k 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
6k 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
536 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
454 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
969 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 ...
-1 votes
2 answers
17k 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
1 answer
333 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
2k 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
220 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
65 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
2k 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
435 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
317 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 ...
1 vote
1 answer
2k 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 (:...
1 vote
1 answer
6k 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
2k 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
3k 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
2 answers
3k 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
20 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
4k views
mariaDB 10.5.12 access denied for [email protected]
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
211 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 ...
4 votes
1 answer
5k 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
3 answers
2k 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
1k 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
51 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
988 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
331 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
196 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
259 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
752 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
533 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 ...
1 vote
0 answers
899 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... :-( ...