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
537 questions
1
vote
2 answers

How to configure apache to allow access to subdomain on my local ip address

I would like to have others inside my local network access resources on my computer at outsideprojects.192.168.0.10. I am running Apache and have a virtual host configured so I can access it at outsideprojects.localhost but can't seem to be able to…
Icode4food
  • 175
  • 1
  • 2
  • 13
1
vote
1 answer

Localhost subdomains with Bind9

So, following this question here and a number of other questions about subdomains on localhost, we learned that /etc/hosts isn't capable of handling wildcard routes and we need a DNS system. Ok, I have installed Bind9 on my machine (Ubuntu). Now,…
Dziamid
  • 129
  • 3
1
vote
3 answers

How to get local webserver to my external ip

Problem: I am trying to run a webserver from my computer. I see the request getting to the server, but am unable to see the page on the browser due to a "Errno 10054: An existing connection was forcibly closed by remote host" in my server logs.…
Derek Kwok
  • 113
  • 5
1
vote
2 answers

Localhost not recognized

For some reason my localhost is not recognized. I have this in my hosts file as I've always had: 127.0.0.1 localhost ::1 localhost I did do a flushdns, not sure if that caused it. Then I tried a /registerdns in the command…
WeDoTDD.com
  • 245
  • 2
  • 5
  • 14
1
vote
3 answers

Fake domain doesn't resolve when offline

I have a flimsy grasp of DNS. Nonetheless, in order to install a local development copy of Wordpress MU, I needed to create a fake domain, which I called local.dev. It and all subdomains simply resolve to 127.0.0.1. Apache then directs to the…
Fletcher Moore
  • 123
  • 1
  • 7
1
vote
2 answers

How to exclude local traffic from AWStats reports?

I have AWStats configured to run on my website, but I would like it to exclude hits coming from myself (localhost) that are seen as originating from these ip addresses: 127.0.0.1 192.168.0.1 How can I configure this?
WilliamKF
  • 215
  • 1
  • 7
  • 12
1
vote
1 answer

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 mariaDB allows local root to log in when host equals to…
mpr
  • 11
  • 1
1
vote
1 answer

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 websocat ws://127.0.0.1:8083 What is the setup I…
q0987
  • 81
  • 5
1
vote
0 answers

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 third-party authentications. Here is the nginx…
SoftTimur
  • 307
  • 2
  • 5
  • 14
1
vote
1 answer

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.localhost PING test.localhost(ip6-localhost (::1)) 56 data bytes 64…
Greg
  • 1,557
  • 5
  • 24
  • 35
1
vote
1 answer

Non-server side method of getting local IP address in browser?

I am trying to provide a way for users on my LAN to "register" with the Network admin (me) without having to either a) host a page on my computer b) host a script on the central server (since it is only a router, not really a solid HTTP server) or…
Anthony
  • 305
  • 4
  • 14
1
vote
1 answer

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 new domain at 127.0.0.1 and I've turned on vhosts…
paintedbicycle
  • 199
  • 1
  • 3
  • 15
1
vote
1 answer

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 server by running the command: ssh -N -R…
Sulliwane
  • 131
  • 6
1
vote
1 answer

Bad Request from RewriteRule after putting Directive

I am building .htaccess for both localhost and godaddy when I stumbled upon this issue. RewriteEngine on SetEnvIf HOST ^localhost$ LOCAL=/company SetEnvIf HOST ^((?!localhost).)+ LOCAL=/ RewriteRule (.+)…
NewWeiNern
  • 13
  • 3
1
vote
0 answers

Browser Downloading ASP App Instead of Displaying

Windows Server 2012 R2 / IIS 8.5 In IIS > Sites > Default Website I have an (ASP) application, when I visit the localhost URL a file is downloaded instead of the page being displayed. The files are located at C:\inetpub\wwwroot\rooms and within this…
TheOrdinaryGeek
  • 419
  • 1
  • 4
  • 11