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
18
votes
4 answers

Copying files with scp: connection timed out

I am running a script on a remote machine and I would like to copy the output file on my pc, using scp. I am perfectly able to copy files from my pc to the remote one, but apparently I am not in doing the opposite: I have tried with both my hostname…
Argentina
  • 1,071
  • 5
  • 16
  • 30
17
votes
2 answers

Hostname vs. IP - address

I am currently implementing openssl into my application. My problem arose when I had to set the hostname, IP - address, and port of the BIO. I have always known ip and hostname to be the same thing. Could someone please explain the difference.
user4175869
17
votes
5 answers

JMX agent throws java.net.MalformedURLException when host name is set to all numeric value

We are using tomcat 7.0.27 in our application. We are below setting jmx properties on tomcat startup. -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8666 -Dcom.sun.management.jmxremote.ssl=false…
user3012665
  • 171
  • 1
  • 1
  • 4
16
votes
3 answers

Mapping a hostname to an IP address on Android

I know that I have to edit the /system/etc/hosts to map an IP address to a host name, but it seems that I can't edit the file. Is it because my android phone is not rooted? Kindly advise. Thanks.
user800666
  • 161
  • 1
  • 1
  • 4
16
votes
8 answers

How do I get the local hostname if unresolvable through DNS in Java?

This sounds like something that should have been asked before, and it has sort of, but I'm looking to get the local hostname and IP addresses of a machine even when it is not resolvable through DNS (in Java). I can get the local IP addresses…
Shawn D.
  • 7,895
  • 8
  • 35
  • 47
16
votes
3 answers

Django - How to simply get domain name?

Firstly, I want to say that I'm a beginner in Django. I'm looking for a simple way to retrieve the domain name of my Django website. I want to do this in my settings.py. I've already tried with the socket something like this:…
Maître Van Diest
  • 215
  • 1
  • 3
  • 11
13
votes
6 answers

Is there a way to get a hostname from an IP address without depending on a DNS inquiry?

I'm trying to write a script that depends on knowing the names of the computers on a network segment, but all the scripts I've found depend on a DNS inquiry which only replys with the names of a few of the machines. For…
Mog
  • 131
  • 1
  • 1
  • 3
13
votes
5 answers

How to get the base URL of the website VB.NET

I may not be the first person to ask this question but I can't find what I was looking for after looking around. I want to get base URL from the URL. I have tried HttpContext.Current.Request.Url.AbsoluteUri It would return me the full URL …
Laurence
  • 7,633
  • 21
  • 78
  • 129
12
votes
1 answer

How to get fully qualified host name in Python?

I am trying to get the hostname in Python. In linux, if I type hostname on the command prompt I get root@phxdbx45:/home/david/zkpython# hostname phxdbx45 But if I type hostname -f then I get below full qualified hostname in ubuntu and that's what I…
arsenal
  • 23,366
  • 85
  • 225
  • 331
11
votes
5 answers

MySQL error: Can't get hostname from your ip address

I use my remote MySQL database during long time. But today I suddenly have found that I cannot connect to the database. I have got an error. "Can't get hostname from your ip address". I haven't changed anything in MySQL settings. What's the…
Jean Louis
  • 1,485
  • 8
  • 18
  • 33
11
votes
1 answer

Is it possible to customize Terminator's prompt / hostname (user@domain) colors?

So far I have not seen anything on customizing the Terminator "prompt" colors. I know it is possible through ~/.bashrc but this is overridden by Terminator. Is there a way to either customize Terminator's colors further or force it to use customized…
Mav
  • 111
  • 1
  • 5
11
votes
5 answers

Get Request Host Name Without Port in Flask

I've just managed to get my app server hostname in Flask using request.host and request.url_root, but both field return the request hostname with its port. I want to use field/method that returns only the request hostname without having to do string…
M Rijalul Kahfi
  • 1,460
  • 3
  • 22
  • 42
11
votes
1 answer

Java - Getting a server's hostname and/or ip address from client

So here is my situation. I need to use sockets in creating connections between server and client. This cannot be negotiated. I have a server running and listening using something like this ServerSocket serverSocket = new ServerSocket(portNumber); …
Javier Pena
  • 115
  • 1
  • 2
  • 6
11
votes
1 answer

how to resolve hostname from ip address in iOS Objective-C

I'm looking for a way to resolve the hostname of a device in my LAN from its ip address on this LAN. I wrote a program in C which works perfectly on Linux using gethostbyaddr() function. When I tried that on OS X or iOS it doesn't work. It seems…
taredhot
  • 111
  • 1
  • 4
10
votes
2 answers

Changing hostname breaks Rabbitmq when running on Kubernetes

I'm trying to run Rabbitmq using Kubernetes on AWS. I'm using the official Rabbitmq docker container. Each time the pod restarts the rabbitmq container gets a new hostname. I've setup a service (of type LoadBalancer) for the pod with a resolvable…
Pieter van der Merwe
  • 2,235
  • 1
  • 16
  • 13