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

110
votes
14answers
97k 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 ...
0
votes
1answer
24 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
49 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 ...
-1
votes
0answers
52 views

How to apply proxy setting for all users (including NT AUTHORITY\SYSTEM) for windows server 2012 R2?

Can somebody please suggest a way to apply proxy settings in windows so that it would be applicable for all users including the system user ? I tried the solution suggested by Rasmus here How do I ...
0
votes
2answers
54 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
24 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
284 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
62 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
47 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 ...
0
votes
0answers
47 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
51 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. ...
-1
votes
1answer
40 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
59 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
650 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
76 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 ...
17
votes
9answers
45k 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
67 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 ...
20
votes
6answers
30k 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 ...
0
votes
1answer
245 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 ...
-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
92 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 ...
13
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
346 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
364 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
32 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
111 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
220 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
64 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
7k 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 ...
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 ...
1
vote
1answer
76 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 ...
-4
votes
1answer
391 views

FH_HELO_ALMOST_IP: How to fix HELO for sent e-mails (CentOS 7) [closed]

I've got bad rating of my sent e-mails because of my invalid Helo. I have no idea how to fix it. CentOS 7 On Kimsufi Any ideas? Ok, I've done something and it helps. I've made change here ...
0
votes
1answer
82 views

Local IIS webpage address is IP:PORT - How can i have it set to something more human readable, like teehut.com, on my local network?

I am running windows 7 - installed IIS and created a new site. I set this site to run on port 8080. Currently, if i visit http://192.168.2.150:8080/ or localhost:8080, i can hit my site. Other ...
0
votes
1answer
1k views

WAMP can connect to localhost but not 127.0.0.1 [closed]

I'm running WAMP which was working fine the other day. Today I tried connecting to 127.0.0.1 and my browser throws a 404. Both firefox and chrome. My hosts file is correct mapping 127.0.0.1 to ...
3
votes
1answer
2k views

localhost/phpmyadmin pulls blank page [closed]

When I tried configuring local machine as a Internet Gateway with website development capabilities over it and I installed all required software into it. I also had disable the selinux into it. But ...
1
vote
3answers
10k views

phpMyAdmin not found on Windows [closed]

I installed WAMP server 2.2 on Windows 7 x64. I clicked on its system tray icon and put the server online. Then I select PhpMyAdmin and I get a 404 page. Localhost successfully gives me the Apache 2 ...
0
votes
1answer
73 views

Postfix + php translating email addresses sent to local domains to something@localhost.localdomain [closed]

My first question here, if I don't provide sufficient info straight away, please take it easy on me with the downvotes ;-) I'm running a VPS hosted by afterburst.com with OpenVZ I installed and ...
0
votes
1answer
141 views

How to use non-deprecated tools like ss to get process id running on a port?

I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000 to output information about an active port. Any suggestions on how to use a tool like ss to get the process ...
0
votes
2answers
229 views

Apache 2.2 won't start with an ipv6 address [closed]

I'm trying to only allow the localhost on a certain folder, it works perfect with ipv4 (Allow from 127.0.0.1) but as soon as I add ipv6 (Allow from [::1]) my Apache won't start anymore. I checked the ...
-1
votes
1answer
155 views

Too large 127.0.0.1 connections with nginx - apache2 [duplicate]

I use nginx as proxy-server apache2 and I have a problem with netstat output: $ netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n 5 109.195.36.169 6 109.195.33.205 8 ...