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

learn more… | top users | synonyms

-1
votes
0answers
18 views

Change [127.0.0.1] in mail header

I have problem, i need to change 127.0.0.1 to my external server ip in mail headers. Some of spam filters could trigger as it is now. headers Received: from server.example.com (server.example.com [...
0
votes
1answer
46 views

cannot use localhost but 127.0.0.1 works

My usecase is that I manage remote computers using reverse SSH tunneling. This works great as our customer enable the tunnel and I can then log on using it. However, on one machine the tunneling ...
110
votes
14answers
99k views

In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?

I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com to my /etc/hosts/ file? If it's not possible, how do I work around this problem? I need ...
1
vote
0answers
44 views

haproxy with SSL in front of apache for local development

I work on a web app that regularly makes AJAX calls to a REST server that (in production) is accessed via the same domain. While developing locally, I have been redirecting REST calls to a dev server ...
1
vote
1answer
47 views

Ubuntu Apache Server 503 Error: disabled connection for (localhost)

in a bit of a bind here. I'm trying to move a website (www.monkhouselaw.com) from one hosting company to my Digital Ocean VPS. I've changed the DNS settings to: * -> 107.170.29.18 www -> 107....
0
votes
1answer
1k views

tftp times out on localhost

On the same server, I can't connect to my in.tftp over localhost name: $ tftp localhost -c put test.file && echo Sent\! Transfer timed out. $ tftp 127.0.0.1 -c put test.file && echo ...
0
votes
4answers
2k views

XAMPP apache localhost - browsers point to the wrong port even after I changed Listen port back to 80

Running Windows 7. Got a weird problem - I used to use port 8080 for my apache on XAMPP as somehow I couldn't get it to work on 80. I did that by changing the Listen port of /xampp/apache/conf/httpd....
1
vote
8answers
16k views

localhost went “It works!” - and nothing else

I'm working with Mac's built in Apache, and everything was just great UNTIL - something went wrong. I think it's the .hosts file. http://localhost results with "It works!" message, while any /[...
0
votes
0answers
38 views

Fix 'ERROR - Unable to set localhost. This prevents creation of a GUID'

My program is working fine but seems I have to set 'set localhost'. Should I do this or it's optional? How to fix in case I should? -sh-4.1$ sh interproscan.sh -i test_proteins.fasta -f tsv -goterms ...
-1
votes
0answers
15 views

Windows host file stopped working? [migrated]

I have this lines in the hosts file 192.168.99.100 www.testlocal.com and when i try to access them from the chrome it gives me this error This site can’t be reached testlocal.com’s server ...
0
votes
0answers
15 views

Apache2.4 - make subdomain point to the same directory as domain

I have a problem configuring access permissions. I need to setup a WordPress subdomain multisite network for testing on my local machine. I'm on Linux, running Apache 2.4.10 in chroot (if this matters)...
0
votes
1answer
26 views

What to use as DB Host when installing WordPress?

I am aware of how daft this question seems. I am installing WordPress on two load balanced servers (hardware load balancer), with MySQL set up in Master-Master configuration with an installation on ...
1
vote
0answers
51 views

How to connect to a service on a local network machine whch which only listens to localhost?

I have a service which only listens to localhost on port 7400. There is a service running on a windows and an ubuntu machine on a private network. How can another computer on the same network ...
0
votes
2answers
72 views

postfix allow localhost only local users

I have a little problem. I am offering some clients access to my server in order to execute own scripts (of course in their own chroot environment, etc...). The problem which occured today: Some ...
-4
votes
2answers
46 views

Cannot copy a local file to live server over a port other than 22 [closed]

I am trying to copy a file from my computer to my server through scp command. I have changed the default sshd port from 22 to 36871. Now, the problem is when I issue the scp command over port 36871, I ...
3
votes
1answer
27 views

Will it detriment my security if I allow all connections from localhost through iptables?

Under my current configuration, iptables will block every inbound connection, even if coming from localhost. In some cases, I need localhost to connect to itself. If I create a rule that allows all ...
2
votes
2answers
299 views

DNAT from localhost (127.0.0.1)

I'd like to set up a TCP DNAT from 127.0.0.1, port 4242 to 11.22.33.44, port 5353 on Linux 3.x (currently 3.2.52, but I can upgrade if needed). It looks like the simple DNAT rule setup doesn't work, ...
-1
votes
1answer
71 views

bad localhost resolution on linux [closed]

$ dig @127.0.0.1 localhost $ dig @127.0.0.1 localhost. ;localhost. IN A ;; ANSWER SECTION: localhost. 604800 IN A 127.0.0.1 ;; AUTHORITY SECTION: localhost. 604800 IN NS ...
9
votes
2answers
20k views

“/etc/apache2/httpd.conf: No such file or directory” error after Ubuntu upgrade

So I upgraded Ubuntu and I went to 127.0.0.1 in Chrome and got "Oops! Google Chrome could not connect to 127.0.0.1" so I restarted Apache but was met with this error: apache2: Syntax error on line ...
1
vote
1answer
48 views

What is the 'play' host?

I tested the following on a Ubuntu machine. The command ping play results in PING play (127.0.53.53) 56(84) bytes of data. 64 bytes from 127.0.53.53: icmp_seq=1 ttl=64 time=0.029 ms 64 bytes ...
8
votes
7answers
14k views

Can't SSH into a Vagrant Virtual Machine

Local Vagrant machine installed at IP address 10.0.0.23 with hostname lamp-vm. Using vagrant ssh command, I can connect just fine and do everything I need. This creates an error $ ssh vagrant@...
0
votes
0answers
73 views

Rtmplite and Open Broadcaster Software

I'm messing around with Rtmplite (found here), a Python implementation of an RTMP server. I'm doing this because I have an old computer running SunOS 5.10 that I want to use to stream a friend's ...
1
vote
2answers
3k views

Configure Dovecot to only let localhost connect via imap

How do I configure the Dovecot message delivery agent to only allow imap connections from localhost?
4
votes
4answers
3k views

can localhost be spoofed?

Is it possible for a remote machine to access another machine's localhost data by spoofing the loopback ip? Say if I wanted a setup where if I'm connecting from somewhere outside my own network, I ...
1
vote
1answer
27 views

How to set up Apache2 on different local development environments to use the same artificial host name?

I have two development environments: PC at work (env1), laptop at home (env2). Both machines run Ubuntu 15.10 with Apache 2.4.12. Once finished, the project shall be deployed to a public web server (...
0
votes
1answer
55 views

How to map apache to use an index file inside another directory in www/html/ without reflecting on url

Apache version: 2.4 OS: Ubuntu 14.04 I am not sure whether I wrote the heading correctly. My index file is located at some directory (say /var/www/html/new/ ) rather than the default apache root. I ...
-1
votes
1answer
46 views

Apache Sub domain Redirects to LocalHost

I have the following in my httpd.conf file (snippets only): Listen 80 Listen localhost:80 DocumentRoot "c:/web" <Directory "c:/web"> DirectoryIndex index.html index.php Options Indexes ...
0
votes
1answer
81 views

How to test GeoIP .dat librairie in local

I'm on a projet where I have to implement GeoIP on a Redhat Apache instance. For now, i'm only testing the configuration in local. Here it is : <IfModule mod_geoip.c> GeoIPEnable On ...
1
vote
2answers
4k views

IIS refuses connection to localhost and 127.0.0.1

I am unable to connect to localhost and http:// 127.0.0.1 on one of my machines. However http://machinename works. This results in the Windows Token Application being not able to issue tokens, ...
2
votes
1answer
1k views

Port 80: connection refused. How to fix on Mac OSX? [duplicate]

I've noticed some issues with Apache virtual hosts on two Macs that otherwise have the same kind of set up (in terms of httpd.conf, vhosts, hosts etc.) On one Mac, virtual hosts are served without a ...
0
votes
2answers
2k views

hMailServer - Thunderbird message with a blank body

I've just installed hMailServer and Thunderbird and managed to get them talking to each other. When Thunderbird gets the message from the server (this is all running locally by the way), the subject ...
1
vote
4answers
80 views

Localhost or real hostname (real IP)

Lets suppose that I need to send data from one services to other on the same host. For this I can use localhost:port or real.domain.name:port (lets think that it cached or can be resolved by local dns)...
17
votes
9answers
47k views

MySQL cannot connect via “localhost”, only 127.0.0.1

this is somewhat of a mystery to me. The only way I can connect to MySQL is if I call it via "127.0.0.1" ... for example, my PHP connect script will NOT work with localhost I'm running Mac OS X Lion, ...
1
vote
0answers
18 views

dnsmasq causes “Bad request syntax”

I need to wildcard localhost for dev purpose and I'm really green on dns and network things. With wildcard localhost I mean that I need to test my python and node.js applications with: localhost.dev, ...
1
vote
0answers
79 views

Mongoose hang waiting for localhost

I'm using Mongoose on Windows 10, localhost is unreliable. I have tried almost all hosts file combination possible. I have tried almost all qualified names for localhost. Most of the time it just ...
21
votes
6answers
31k views

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld /var/run/mysqld/...
0
votes
1answer
254 views

Proxmox on localhost network + 32 bits host

I'm working in installing Proxmox on localhost network. Installing the PVE kernel works fine : root@localhost:~# uname -a Linux localhost 2.6.32-14-pve #1 SMP Sat Sep 22 08:55:13 EST 2012 i686 GNU/...
-3
votes
2answers
4k views

Apache2 : Xampp is not running

I have apache2 and Xampp both installed in my server now my problem is When i stop apache2 from /etc/init.d/apache2 stop and tried restart xampp like /opt/lampp/lampp restart i am getting the ...
1
vote
1answer
108 views

ssh bind address through multiple hosts

I'm trying to ssh through multiple hosts which works with no problems like so: ssh -t -t user1@host1 ssh -t -t -p 222 user2@host2 Now I would like to use local host for access to a third host and I ...
14
votes
5answers
27k views

Is there a way to get wireshark to capture packets sent from/to localhost on Windows?

Is there a way to get wireshark to capture packets sent from/to localhost? When I monitor traffic going from my computer to another, or from another computer to my computer, then it works. But ...
1
vote
1answer
446 views

Can't reach 127.0.0.1 via Browser(Windows Server 2012R2)

On a Windows Server 2012R2 I can't open the local hosted site via 127.0.0.1, via localhost works. Ping of 127.0.0.1 works also. On a Windows Server 2008R2 it works without any Problems. What could ...
1
vote
1answer
472 views

Cannot access Apache 2 virtual host on localhost

I originally set my web root in /etc/apache2/sites-available/000-default.conf to point to /home/me/www. Due to the requirements of a new project, I need to be able to set /home/me/www/vendor/www as ...
0
votes
0answers
34 views

Is it possible to make apt-cacher not cache specific repositories

We have a environment currently setup with Apt-Cacher and it is working great. I am in the process of making a local Debian repository for custom packages that we crate in house. I can serve the ...
0
votes
1answer
122 views

cant connect esl to freeswitch

im trying to connect an application to FreeSWITCh using ESL. the code is ok (it works on other machines) but on one installation its not connecting. im trying to connect to localhost:8021 but the ...
1
vote
3answers
238 views

how to find proces which is pinging localhost

How can you find the process issuing ping to localhost? While it is not script, where the ping command can be simply grep from process table. I have used wireshark, but it is of no help to find out ...
0
votes
2answers
6k views

nginx redirecting to localhost

I'm sort of a noob at this and I'm just switching into nginx so I apologize for the noob question. I have installed nginx and when I go to the root directory of its web folder I can get the index ...
-2
votes
1answer
69 views

IP address differences between two computers on the same local network [closed]

Why does the python command print(socket.gethostbyname(socket.gethostname())) give: 192.168.1.4 on my laptop 127.0.1.1 on my Raspberry PI when they're both on the same local network, and the PI's IP ...
2
votes
4answers
9k views

What exactly is going on when I go to localhost:8080 in my web browser? (Apache Tomcat)

I've spent my career doing all local application programming (C++ applications and whatnot). I'm trying to dig my feet into the web world now, however. I'm using Eclipse (Mars) and Apache Tomcat 8.0....
0
votes
0answers
16 views

Apache Redirect to https except for localhost requests [duplicate]

I want that external requests on my Apache will be redirected to https - RedirectMatch ^/$ https://example.com but when the request comes from localhost the Redirect should point to http://example....
1
vote
1answer
83 views

When connecting to localhost, does a full SYN, SYN-ACK, ACK handshake still occur?

This question is addressed, primarily for Linux. While I could find the answer myself, I'm hoping someone out there just knows the answer implicitly and can save me some time. If I'm connecting to a ...