Questions tagged [hostname]

A hostname is a human-readable nickname that is assigned to a device connected to a computer network and that is used to identify the device.

A hostname is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication such as the World Wide Web, e-mail or Usenet. Hostnames may be simple names consisting of a single word or phrase, or they may have appended a domain name, which is a name in a Domain Name System (DNS), separated from the host specific label by a period (dot). In the latter form, the hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, then the hostname is said to be a fully qualified domain name (FQDN).

1162 questions
3
votes
2 answers

Android cannot resolve hostname on internal network - but I can't use IP address

My Android application is used on customers internal networks, and part of the configuration involves them entering the URL to their web service. Android from the start seems to be unable to see hostnames inside an internal network so until now I've…
Psiloc
  • 257
  • 3
  • 9
3
votes
5 answers

Setting up WAMP to run on LAN, including mobile access, iPhone

I'm developing a CodeIgniter app on Win 7, using WampServer v2.0 - I've edited my local HOSTS file so that I can access it here: ht_tp://testdomain/ instead of ht_tp://localhost/testdomain/ to help make it work the same locally as it does when…
Dan Searle
  • 546
  • 2
  • 5
  • 14
3
votes
2 answers

Unable to resolve hostname with docker-compose and podman

I am trying to deploy a mastodon server using this project: https://github.com/tootsuite/mastodon I am running Docker-Compose and Podman on a Fedora 33 server. $ docker-compose --version docker-compose version 1.27.4, build unknown $ docker…
Coukaratcha
  • 133
  • 2
  • 11
3
votes
1 answer

How to set up custom hostnames and ports for servers (eg node.js) running in WSL 2

(I've provided a simple working solution in response) I recently moved from macOS to WSL 2. I have two node servers running within WSL 2 (Ubuntu distro). Each must be accessible through a custom hostname for development vs production purposes. I've…
MoMo
  • 1,836
  • 1
  • 21
  • 38
3
votes
1 answer

Get the list of devices with their hostnames and ip addresses on LAN in iOS swift 5

I am trying to get the details of connected devices on Local Area Network like Fing or iNet. I have tried some libraries: MMLanScan or LAN-Scan and got IP addresses but couldn't get the hostnames. Please share if anyone has gone through this…
Ibrar
  • 117
  • 1
  • 9
3
votes
3 answers

NSNetService works fine, but can't get hostName, resolve causes error

I'm using Bonjour with an NSNetService to publish a server from my iPhone. It all works as expected, I can browse the pages I'm serving etc. However, on the iPhone I want to display the host name (i.e. the URL, like "myDevice.local."), so that one…
mkeiser
  • 965
  • 9
  • 17
3
votes
1 answer

How to disable Kafka hostname verification for client scripts?

Do you know how can I disable Kafka hostname verification for using Kafka scripts such as kafka-console-consumer.sh? This is my config right now: security.protocol=SASL_SSL ssl.endpoint.identification.algorithm= sasl.mechanism=JWT I have set the…
Mohammad Roohitavaf
  • 439
  • 2
  • 6
  • 15
3
votes
3 answers

getCanonicalHostName is returning unqualified name

I've got a few host that return an unqualified name for InetAddress.getLocalHost().getCanonicalHostName()(Documented here) e.g. "foo" instead of "foo.example.com". What could cause this and how could I fix it? Running "hostname -f" on the command…
dlipofsky
  • 289
  • 1
  • 4
  • 18
3
votes
4 answers

Get computername from hostname in C++?

The IP address is 192.168.23.4. I am able to get the hostname from the ipaddress using the following code snippet: struct sockaddr_in sa; char str[INET_ADDRSTRLEN]; inet_pton(AF_INET, "192.168.23.4", &(sa.sin_addr)); struct sockaddr_in saGNI; char…
3
votes
3 answers

Node.JS .listen(port, 'hostname') does not work

at the moment I try to spin up a node.js server and I do want to understand the arguments of server.listen. server.listen(port, hostname, backlog, callback); Question: as far as I understand this the 2. argument of listen should be a hostname. The…
Burg
  • 191
  • 3
  • 15
3
votes
0 answers

Docker exec and docker run giving me different resolv.conf hosts

I using docker compose to fire up two containers 1. flask webapp 2. mysql database. I have all my scripts written up and Dockerfile all ready to go and working. My app does a ping to other machines by hostnames and requires the resolv.conf to be the…
lion_bash
  • 1,309
  • 3
  • 15
  • 27
3
votes
1 answer

Get host's hostname in docker compose

what is the equivalent of docker swarm's {{.Node.Hostname}} in docker-compose. I am trying to get host's hostname in my docker-compose.yml file. Thanks.
3
votes
0 answers

Keycloak redirect_uri

I have the problem, when request to login comes to Keycloak, in the redirect url there is a name of the server with the application like l-server01, but thats the internal name, so I cant access it from outside of the network. I want to have this…
troger19
  • 1,159
  • 2
  • 12
  • 29
3
votes
1 answer

uwp, c# Dns.GetHostAddresses() not resolve hostname from hosts file

I am working on uwp app. I edited hosts file and redirecting www.example.com to local server IP(192.168.1.187). In browser website is loading properly but in application System.Net.Dns.GetHostAddresses("https://www.exaple.com")[0] Throws…
Shashi kumar S
  • 873
  • 3
  • 10
  • 21
3
votes
2 answers

Linux hostname resolution on a machine with multiple running interfaces

I have 4 running eth ports on my Linux machine (eth0 through eth3). So if i give the command host , which eth port's ipaddress will be returned? how does linux decide which eth port's ip address to be returned? Thanks, LinuxPenseur
nitin_cherian
  • 6,405
  • 21
  • 76
  • 127