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
549 questions
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
  • 337
  • 2
  • 8
  • 16
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,657
  • 5
  • 27
  • 38
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
  • 315
  • 4
  • 15
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
  • 7
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

windows 10 localhost resolution slow

i am running a local python server on windows 10 and sending requests to it via the localhost domain are significantly slower than using 127.0.0.1. i have edited my hosts file and the problem occurs whether i have 127.0.0.1 localhost commented…
jpro
  • 133
  • 1
  • 4
1
vote
3 answers

-bash: mysql: command not found

I'm kinda new to this but I am having issues with PHPMyAdmin as well as MySQL on my local machine. It has worked previously. When I try to run mysql from the command line I get: -bash: mysql: command not found Additionally, PHPMyAdmin will not let…
Shaun
  • 149
  • 2
  • 2
  • 7
1
vote
2 answers

changing netmask of loopback interface

I can change netmask of loopback inteface (usually lo interface has 127.0.0.1/8): pi@raspberrypi:~ $ ifconfig lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10
1
vote
3 answers

nginx won't load site on local machine

I want to build and test my website on my Arch Linux computer. The contents of the website, including index.html, are in /srv/http/myproject/. /etc/nginx/sites-available/myproject.conf looks like this... server { listen 80; listen…
Username
  • 173
  • 1
  • 5
  • 13
0
votes
1 answer

Hostname wildcard % does not include localhost or 127.0.0.0

In MariaDB on windows I create a user and database with the following flush privileges; CREATE USER 'test-one'@'%' IDENTIFIED BY 'test-one'; GRANT USAGE ON *.* TO 'test-one'@'%' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0…
theking2
  • 179
  • 1
  • 1
  • 9
0
votes
0 answers

How to redirect HTTPS traffic to a proxy on localhost:443?

I'm building an HTTP server in C++ using the Cesanta Mongoose c++ networking library. Essentially I'm trying to redirect traffic from my web browser to a proxy on the localhost. I recently added support for HTTPS by purchasing a certificate and…
0
votes
2 answers

Adding virtualhost to Apache prevent access to localhost

I am using Uubntu 16.04, with Apache2 (version 2.4) on my local personal laptop for development purpose. I have added a virtual host (hehe) under sites-enabled directory. Since I have added it, I have troubles accessing http://localhost from Firefox…
aviv
  • 167
  • 1
  • 1
  • 9
0
votes
1 answer

Configuring https for localhost (Apache2)

I try to set up https for my localhost. On my localhost I have a Zabbix_server instance running. I have set the permissions according to this post, but I recieved this errors: [Mon Oct 14 10:37:37.593028 2019] [ssl:error] [pid 4224:tid…
Jarne
  • 25
  • 1
  • 9
0
votes
1 answer

Can't set up domain and subdomain locally using SSL

I have the following configuration for my local Apache server: ServerName mysite.local SSLEngine on SSLCertificateFile "/Users/graziano/Projects/mysite/ssl/mysite.local.pem" SSLCertificateKeyFile…
grazdev
  • 101