Questions tagged [host]

A general-purpose computer system interconnected to some communications network, or communications networks for the purpose of achieving resource sharing amongst the participating systems is called Host.

A general-purpose computer system interconnected to some communications network, or communications networks for the purpose of achieving resource sharing amongst the participating systems is called Host.

This term is used in a number of Request for Comments (RFC) documents like RFC 871.

1857 questions
489
votes
7 answers

location.host vs location.hostname and cross-browser compatibility?

Which one of these is the most effective vs checking if the user agent is accessing via the correct domain. We would like to show a small js based 'top bar' style warning if they are accessing the domain using some sort of web proxy (as it tends to…
anonymous-one
  • 14,454
  • 18
  • 60
  • 84
446
votes
20 answers

How do you detect the host platform from Dart code?

For UI that should differ slightly on iOS and Android, i.e. on different platforms, there must be a way to detect which one the app is running on, but I couldn't find it in the docs. What is it?
Gavin
  • 6,495
  • 3
  • 21
  • 22
346
votes
14 answers

How to mount host volumes into docker containers in Dockerfile during build

Since 2014 when this question has been asked, many situations had happened and many things has changed. I'm revisiting the topic again today, and I'm editing this question for the 12th time to reflect the latest changes. The question may seem long…
xpt
  • 20,363
  • 37
  • 127
  • 216
293
votes
8 answers

Run command on the Ansible host

Is it possible to run commands on the Ansible controller node? My scenario is that I want to take a checkout from a git server that is hosted internally (and isn't accessible outside the company firewall). Then I want to upload the checkout…
Ross
  • 46,186
  • 39
  • 120
  • 173
109
votes
15 answers

How to set target hosts in Fabric file

I want to use Fabric to deploy my web app code to development, staging and production servers. My fabfile: def deploy_2_dev(): deploy('dev') def deploy_2_staging(): deploy('staging') def deploy_2_prod(): deploy('prod') def deploy(server): …
ssc
  • 9,528
  • 10
  • 64
  • 94
95
votes
7 answers

A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist

I can't access dotnet after an update. Reinstalling dotnet and vscode didn't help. On Ubuntu 22.04, running dotnet --info produces the output: A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
Vladislav Volynets
  • 1,061
  • 1
  • 7
  • 6
93
votes
17 answers

How to ping an IP address

I am using this part of code to ping an ip address in java but only pinging localhost is successful and for the other hosts the program says the host is unreachable. I disabled my firewall but still having this problem public static void…
Mehdi
  • 1,001
  • 1
  • 8
  • 7
71
votes
1 answer

Share folders from the host Mac OS to a guest Linux system in VirtualBox

How do I go about sharing a folder between the host (Mac) and the guest OS (Ubuntu) in Virtual Box?
Abhishek Jain
  • 4,478
  • 8
  • 34
  • 51
69
votes
9 answers

How to use Django to get the name for the host server?

How to use Django to get the name for the host server? I need the name of the hosting server instead of the client name?
user469652
  • 48,855
  • 59
  • 128
  • 165
61
votes
1 answer

Android USB host read from device

I'm trying to get some data out of a USB device connected to my Android phone that is on host mode. I'm able to send data to it, but reading fails. I've looked at several examples and tried all I could but I don't have any experience in USB…
Solenoid
  • 2,351
  • 5
  • 29
  • 48
46
votes
5 answers

How redirect a domain to Amazon EC2 Machine?

I'm using EC2 of Amazon to host a website built in JSP : http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p And I bought this domain: www.p2pbrasil.com How can I redirect www.p2pbrasil.com to my website in Amazon EC2 ? When someone type…
Valter Silva
  • 16,446
  • 52
  • 137
  • 218
44
votes
6 answers

Unable to host MP4 files on Azure web site

I am hosting a static website on a reserved web site in Azure (It is PaaS, no access to OS/IIS). I am trying to add some .mp4 videos but when I click on the links I get The resource you are looking for has been removed, had its name changed, or is…
Ed Cunn
  • 441
  • 1
  • 4
  • 3
42
votes
6 answers

How to get the SPRING Boot HOST and PORT address during run time?

How could I get the host and port where my application is deployed during run-time so that I can use it in my java method?
Anezka L.
  • 421
  • 1
  • 4
  • 4
41
votes
12 answers

Putty won't cache the keys to access a server when run script in hudson

I had a simple automation process to write which needed to copy a few files from linux server to windows via SSH. This can be accomplished using putty. SSH, as part of the protocol, verifies the host’s identity and if not known to be correct, will…
Charlotte Xu
  • 411
  • 1
  • 4
  • 4
40
votes
4 answers

Android USB Host - bulkTransfer() is losing data

I'm trying to receive data from a custom device based on an FTDI 2232H chip. I am using a simple Async FIFO mode, and the incoming data rate is 3.2MB/sec. Everything works perfectly with test code on my PC, but I'm having problems receiving data on…
Greg
  • 839
  • 8
  • 8
1
2 3
99 100