Questions tagged [localhost]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
830 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 ...
amir shariflou's user avatar
1 vote
1 answer
979 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....
Greg's user avatar
  • 1,677
0 votes
1 answer
1k 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 ...
mahen3d's user avatar
  • 4,442
0 votes
1 answer
587 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 ...
user1814720's user avatar
1 vote
1 answer
297 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 ...
paintedbicycle's user avatar
0 votes
0 answers
293 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'...
SpenserWilson1's user avatar
0 votes
1 answer
589 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 ...
robertspierre's user avatar
1 vote
1 answer
2k 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 ...
Sulliwane's user avatar
  • 131
1 vote
1 answer
393 views

Bad Request from RewriteRule after putting <If> 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=/ <If &...
NewWeiNern's user avatar
0 votes
1 answer
3k views

How can i access my ip:my port [closed]

I'm trying to access a specific port (which is 3000) on my server, I can access to localhost:3000 and I can access 192.168.1.111 (my local IP) but I can't access 192.168.1.111:3000 although I'd added ...
user617317's user avatar
26 votes
2 answers
70k views

How to add local forward setting to my ssh config file?

I currently can do this: ssh 12.34.56.78 -L 8888:localhost:8000 And I can then open my local browser to localhost:8888 and see the app running in my server at 12.34.56.78:8000. I want to avoid having ...
andrux's user avatar
  • 365
2 votes
1 answer
593 views

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 ...
TheOrdinaryGeek's user avatar
0 votes
1 answer
928 views

If I request data from localhost vs web-address, does the data go through the network

Apologies if my wording is not fully correct - I am quite new to all of this. Goal: I am trying to improve the speed at which I get data from my database Setup: I am hosting the DB on server A. The DB ...
Newskooler's user avatar
0 votes
1 answer
2k views

Cannot connect to port 5432 locally even though it is allowed by UFW

I'm trying to setup my server so that port 5432 (Postgres) is accessible only from localhost. So I've denied everything, and added back port 5432, however I cannot connect to it. Here is my UFW config:...
laurent's user avatar
  • 189
0 votes
0 answers
297 views

Bind 9 debug logging requests from localhost

If I do, for example dig delfi.lv from a PC on LAN, I get some log messages in /var/cache/bind/named.run like: 29-Oct-2020 12:01:51.905 client @0x7f2adc000cd0 192.168.1.2#37827 (delfi.lv): query: ...
Martins Pukitis's user avatar
1 vote
0 answers
2k views

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 ...
jpro's user avatar
  • 133
0 votes
0 answers
51 views

Identify Source / Trigger of / for Network Traffic locahost

I want to identify the application trat triggers network traffic like the one below. I have dissabled ethernet and wireless cards, and denied incoming traffic in firewall. $ sudo tcpdump -vv -e -A -i ...
u20200411's user avatar
0 votes
1 answer
901 views

How to debug localhost redirect issue?

I am trying to figure out why when I access my local IP (192.168.x.x) from another PC does not redirect to localhost of my PC. My configuration is this: I have a hypervisor on my server. On the ...
Ovidiu Uşvat's user avatar
0 votes
0 answers
40 views

Running built application (Bamboo)

With my centOS running Bamboo Server, I have configured plans to build applications whenever a new code gets commited on a certain branch in the project repo on bitbucket. But i am unable to run the ...
welwelwel's user avatar
  • 109
1 vote
2 answers
768 views

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<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 ...
mastupristi's user avatar
0 votes
1 answer
212 views

Nginx localhost multi site downloads php files instead of executing

I have multi sites in my web root (/var/www), for example site1, site2, etc. and I configured Nginx as below: ## PHP-FPM Servers ## upstream localhost-php-fpm { server unix:/var/run/php/php7.3-fpm....
M Sh's user avatar
  • 1
1 vote
3 answers
5k views

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....
Username's user avatar
  • 173
0 votes
1 answer
1k views

Postgres authentication type "local" vs "host 127.0.0.1"

I have a Postgres v10 Server to which only local connections will be established. In the documentation I find two methods to configure such an authentication process in pg_hba.conf: local and host ...
TheCooocy's user avatar
  • 141
0 votes
1 answer
569 views

nginx acessible from localhost but not from private ip

I'm trying to expose an ubuntu computer to my local network to host a website. After installing Nginx, and configuring ufw to open ports. I configured Nginx with the following: http{ server{ ...
Fabio Araujo's user avatar
2 votes
1 answer
2k views

What does "localhost name resolution is handled within DNS itself" mean?

I know that the Windows hosts file maps host names to IP addresses. But there is no mapping for localhost. Instead it has a comment that says this: # localhost name resolution is handled within DNS ...
Liga's user avatar
  • 135
0 votes
0 answers
2k views

Is IIS binding to "localhost" equivalent to 127.0.0.1 IP Restriction?

We have a website set up in IIS that is for security reasons only allowed to be accessed by itself. It sits on the same webserver as publically accesible websites. The way this has been enforced is ...
Arkiliknam's user avatar
0 votes
1 answer
3k views

Is it possible to forward 127.0.0.1:port to publicip:4567?

I have a ruby server running , based on the following repository https://github.com/BuffaloWill/oxml_xxe I am running Ubuntu without vnc installed. I tried to access the server via my public ip and ...
Joel Deleep's user avatar
0 votes
1 answer
2k views

Pushing to local docker registry gives connection reset error in githubactions

Pushing to local docker registry gives connection reset error It was this same situation but instead for github actions which appeared to have different issues. I also followed this: https://github....
dtracers's user avatar
  • 101
0 votes
1 answer
179 views

Trying to setup GatsbyJS development server on Amazon EC2

I have an amazon ec2 instance with the following securitiy group I am running nginx with the following configuration under /etc/nginx/sites-available/default server { listen 80; server_name http://...
Anders Kitson's user avatar
0 votes
0 answers
1k views

Thunderbird failed to find the settings for your email account

I can't seem to overcome the "Thunderbird failed to find the settings for your email account" error. I'm using Virtualbox (ubuntu, virtual server, virtual workstation, localhost Servername: ...
alil2country's user avatar
0 votes
1 answer
37 views

Does the resources of a localhost testserver equal the resources of the computer itself?

I have a webapplication that i occasionally run on localhost. It is a spring boot application running on an embedded tomcat server. Say my computer has a cpu of 2.1 ghz and 8 GB of RAM, does this mean ...
Maurice's user avatar
  • 137
0 votes
1 answer
4k views

Redirect localhost port to external ip and port

I am running macOS Mojave 10.14.6. I have an app that is looking for a service hosted on localhost:9999, but I am hosting this service on a different server at 12.3.4.5:8000. How can I setup firewall ...
Njord's user avatar
  • 3
0 votes
1 answer
2k views

Postfix configuration to send emails from localhost

I want to configure localhost to send emails via postfix server, I do this for testing my solution of setup Docker with Wordpress (with solution found on internet email was not working, also curl but ...
jcubic's user avatar
  • 250
5 votes
3 answers
12k views

Minikube. How to allow access to local mySQL database from container

I'm trying to access to local MySQL database from minikube container. My minikube works on Windows 10 with hyper-v driver. I found a few solutions (creating host-only network from VirtualBox) but ...
Denis Lopatin's user avatar
0 votes
1 answer
680 views

domain connecting to localhost and links not working (ERR_CONNECTION_REFUSED)

I'm having trouble to get my website properly online, which I created/designed in Wordpress. I have bought a domain and rented a WordPress hosting server. I have uploaded my whole WordPress folder ...
Ayesha's user avatar
  • 1
0 votes
0 answers
1k views

firewalld is it required to open ports for localhost apps using that port on same server?

Is it required to open ports for localhost apps using that port on same server? I mean not extra connections are made from external servers.. for example i have installed memcached service which ...
Mojtaba Rezaeian's user avatar
0 votes
1 answer
4k views

http://localhost redirects to an external website [closed]

My ubuntu is redirecting http://localhost to an external website (in my case https://about.gitlab.com). I've looked at the apache.conf and etc/hosts, but I cannot find any reference to the redirect ...
jlanssie's user avatar
0 votes
1 answer
1k views

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 ...
theking2's user avatar
  • 180
0 votes
0 answers
739 views

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 ...
ageispolis's user avatar
1 vote
0 answers
506 views

Web server on remote, is it possible to ssh to remote and have local browser connect to server?

On a headless remote machine which I connect to via ssh and do not have sudo privileges, I have an interactive python script with a console interface. I want to use a simple web framework like flask ...
Elfen Dew's user avatar
0 votes
2 answers
2k views

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 ...
aviv's user avatar
  • 167
1 vote
0 answers
530 views

CURL Cannot Resolve Host running on MAMP

I have a MAMP PRO set up with local SSL certificates for a url named qph-plugin.local which is running a wordpress site. When I view the site in the browser on my machine it all works as expected. ...
Paul's user avatar
  • 131
0 votes
1 answer
3k views

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....
Jarne's user avatar
  • 25
1 vote
1 answer
2k views

Changing from Localhost to Computer Name Throws 403 Error (Tomcat 9)

I am trying to run Tomcat 9. I have configured it to run with SSL. So when I am accessing the tomcat URL with: https://localhost:8443/manager/html It works fine. But when I try to run it with my ...
hell_storm2004's user avatar
1 vote
1 answer
612 views

If I have user/host pair "root@<MyMachineName>", is it necessary to keep "root@localhost" in the mysql host/users table? (multi-part Q)

On computer "dexwin10", the user@host pair is as follows: root@dexwin10 root@% root@localhost When people install our software, we want them to be able to access the database from computers ...
Collin's user avatar
  • 111
1 vote
2 answers
579 views

MDNS response “storm” with “localhost_prl: 127.0.0.1”

We are experiencing occasional performance problems in our WIFI. With Wireshark I see a high number (currently 50/s) of MDNS responses for localhost_prl:127.0.0.1. I don't think that this is normal. ...
GxB's user avatar
  • 431
1 vote
0 answers
336 views

How to connect to localhost in Docker in Windows Server 2016

Background: Am using Windows Server 2016 Have installed Containers Have installed Docker (not Docker Desktop / Docker for Windows): https://docs.docker.com/install/windows/docker-ee/ Have multiple ...
A X's user avatar
  • 529
0 votes
1 answer
223 views

Can't set up domain and subdomain locally using SSL

I have the following configuration for my local Apache server: <VirtualHost mysite.local:443> ServerName mysite.local SSLEngine on SSLCertificateFile "/Users/graziano/Projects/...
grazdev's user avatar
  • 101
0 votes
2 answers
2k views

Can I make subdomain of company website only accessable on our company network?

I have created a WordPress site for our company intranet. I also created a subdomain called intranet.example.com. Is it possible to make this subdomain only accessible from our local network? If not, ...
thall24's user avatar
-1 votes
1 answer
2k views

Is it Safe to open a liveserver on localhost:8080 for my website on public wifi? [closed]

Like mentioned in the title I want to work on my website in a Starbucks with Public wifi is there any risk of running a live server on public wifi?
Hanker00's user avatar

1
2
3 4 5
12