Tag Info

New answers tagged

1

gethostbyname has been obsolete since getaddrinfo was introduced more than a decade ago. However neither of them are intended to be used to find the IP address of the host your software is running on. In order to find the IP address of the host your software is running on, the simplest approach is to create a UDP socket and connect it to the remote address ...


0

In this scenario You send a request to resolve localhost which is 127.0.0.1 (loopback interface) and Apache is configured to listen on port 8080, when you access localhost on port 8080 it returns the default VirtualHost.


0

When you type www.google.com into you web browser it opens a connection on the default port 80 to the Google server (via a DNS lookup to see what IP address www.google.com is) and requests the web page. The Google server responds with a web page which your browser draws on screen (usually by making further calls for images, CSS and JavaScript). When you go ...


0

Making it simple, localhost as a web address connects to your local machine, where in this case you have Apache installed as web server. The second part, :8080, means connect to port 8080 of that web address. If you don't specify it, your web browser will connect to the default webserver port, which is port 80. If you are into IP addresses yet, localhost ...


0

What exactly is going on when I direct my web browser to go to localhost:8080? You are causing your web browser to ask your operating system to resolve the hostname localhost. Operating systems will normally resolve the hostname localhost to 127.0.0.1, your loop back interface. Any hostname followed by a : and a port number like :8080 will cause the ...


2

Its the same. The service is bind to any ip you want it to be binded.


1

First you need some sort of DNS setup. The quickest, dirtiest way is to add an entry to each system's hosts file. The entry would look like: 192.168.2.150 teehut.com in the system's hosts file.(%windir%\system32\drivers\etc\hosts in Windows.) This is a pain to administer, however. You'll want to look into a local DNS system such as dnsmasq or bind if you ...


3

This happens because your host has a name that somewhat resembles an IP address, for instance 62-210-247-11.rev.poneytelecom.eu To fix the problem, you need to do two things: Give your host a proper hostname, which is a fully qualified domain name. For instance, mail.example.com. Note that it must not be a "naked domain". On CentOS 7, edit /etc/hostname ...



Top 50 recent answers are included