Skip to main content

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.

Filter by
Sorted by
Tagged with
505 votes
7 answers
302k views

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 ...
anonymous-one's user avatar
490 votes
23 answers
303k views

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's user avatar
  • 7,065
366 votes
15 answers
366k views

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 ...
xpt's user avatar
  • 22.2k
296 votes
8 answers
285k views

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 ...
Ross's user avatar
  • 46.8k
130 votes
10 answers
87k views

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/...
Vladislav Volynets's user avatar
123 votes
7 answers
140k views

Using % for host when creating a MySQL user

My MySQL database needs two users: appuser and support. One of the application developers insists that I create four accounts for these users: appuser@'%' appuser@'localhost' support@'%' support@'...
Ed Manet's user avatar
  • 3,168
109 votes
15 answers
68k views

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 ...
ssc's user avatar
  • 9,796
95 votes
17 answers
307k views

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 ...
Mehdi's user avatar
  • 1,021
72 votes
9 answers
75k views

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's user avatar
  • 50.5k
71 votes
1 answer
102k views

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

How do I go about sharing a folder between the host (Mac) and the guest OS (Ubuntu) in Virtual Box?
Abhishek Jain's user avatar
61 votes
1 answer
36k views

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 ...
Solenoid's user avatar
  • 2,371
46 votes
5 answers
40k views

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 ...
Valter Silva's user avatar
  • 16.5k
46 votes
6 answers
120k views

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.'s user avatar
  • 461
45 votes
5 answers
34k views

AWS: Dedicated Host VS Dedicated Instance, why the first is more expensive than the later?

I'm studying for my Associate Architect exam at AWS, and I can't find an explanation for this question. Why Dedicated Host are more expensive than Dedicated Instances? I understand the main ...
Perimosh's user avatar
  • 2,562
45 votes
6 answers
25k views

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 ...
Ed Cunn's user avatar
  • 451
41 votes
12 answers
101k views

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’...
Charlotte Xu's user avatar
40 votes
4 answers
8k views

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 ...
Greg's user avatar
  • 849
37 votes
5 answers
60k views

Unix command "host" - is there Windows equivalent? [closed]

I am on a Windows 7 machine and I was instructed to use the Unix command "host" as per this article: https://devcenter.heroku.com/articles/custom-domains however, host is not a valid command with ...
Alexander Mills's user avatar
36 votes
2 answers
5k views

ASP.NET vNext is "host agnostic", what does it mean?

According to ASP.NET vNext tutorial: vNext is host agnostic. You can host your app in IIS, or self-host in a custom process. How can I understand this in depth with showing the difference between ...
Amr Badawy's user avatar
  • 7,593
35 votes
4 answers
36k views

How to host an HTML file with ngrok?

Is it possible to host, instead of a web app, a HTML file with NGROK? I really don't know anything about NGROK, I just used it to host a server for a Twilio app, and am wanting to use it to host a ...
user3473819's user avatar
33 votes
4 answers
67k views

Parts of a URL: host, port, path

Here is the URL: https://landfill.bugzilla.org/bugzilla-tip/ In my code I have this: Server server = new Server(host, port, path); From the URL, what is host, what is port and what is path? What ...
petko_stankoski's user avatar
33 votes
4 answers
202k views

How to access site through IP address when website is on a shared host?

I want to edit my host file to forward a website to another IP, but that IP is on a shared host, so the IP doesn't take me to the domain I want. Is there a way around this? i.e. Website: http://...
Andrew Tsay's user avatar
  • 1,923
31 votes
9 answers
112k views

(Flutter) HTTPClient Invalid argument(s): No host specified in URI

Currently working on a little app that allows users to view a database stored on Heroku, however I am running into the aforementioned issue when using the database's URL: ".herokuapp.com/api/". var ...
Oscar Cooke-Abbott's user avatar
30 votes
2 answers
74k views

Rails: how to get the current host, or build a URL with it? [duplicate]

I need to use the host to build a URL with a different port. For example, if the host is example.com, I need to generate a URL like http://example.com:8080/ I need it to be portable, so when I'm in ...
HappyDeveloper's user avatar
29 votes
3 answers
21k views

Copying a struct containing pointers to CUDA device

I'm working on a project where I need my CUDA device to make computations on a struct containing pointers. typedef struct StructA { int* arr; } StructA; When I allocate memory for the struct and ...
Thorkil Holm-Jacobsen's user avatar
27 votes
9 answers
60k views

Host Key Verification Failed

I'm trying to ssh into my UBUNTU through my PC with Cygwin on it. I can WINSCP without a hitch, however when I ssh through a command line it comes up with this error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
user1985351's user avatar
  • 4,649
27 votes
6 answers
25k views

What are the valid characters that can show up in a URL host?

I'm writing some code that processes URLs, and I want to make sure i'm not leaving some strange case out... Are there any valid characters for a host other than: A-Z, 0-9, "-" and "."? (This ...
Daniel Magliola's user avatar
26 votes
3 answers
38k views

How to ignore or Pass 'Yes' when The authenticity of host can't be established in Expect Shell script during Automation

I want to Provide 'Yes' automatically or Ignore it and proceed in a SECURE way, when the below statement comes during execution of my Expect Shell script?. #!/usr/bin/expect spawn ssh $user@$host ...
ShAn PrIyAn's user avatar
24 votes
4 answers
97k views

Android USB host and hidden devices

I am developing an Android application in which I have to communicate to an USB device. I tried to use standart google API in my app, but list of devices is allways empty. Same things if i use USB ...
Alexey.Shilenkov's user avatar
23 votes
2 answers
8k views

Does Request.Url.Host include the subdomain?

e.g. for mail.google.com would it return google.com or mail.google.com? I can't actually test it myself
Adam Lynch's user avatar
  • 3,359
23 votes
4 answers
38k views

Connect to postgresql container from another container (Docker)

I have am trying to follow this tutorial and set up a postgresql container. I have the following script: #!/bin/bash # wait-for-postgres.sh set -e host="$1" shift cmd="$@" until psql -h "$host" -...
Otis Wright's user avatar
  • 2,090
21 votes
5 answers
32k views

Nuxtjs: Expose localhost to external doesn't work

I try to connect my mobile to my local nuxtjs project. I thought it would be easy as described there. https://nuxtjs.org/faq/host-port/ but nothing works. I have also installed cross-env but didn't ...
Gregor Voinov's user avatar
21 votes
2 answers
9k views

Set up custom subdomain for Jekyll Blog hosted in Github Pages

I created a Jekyll-powered blog and am hosting it with GitHub Pages. Now, I want to set up a subdomain (blog.example.com), but can't make it work. I have added a CNAME file with the text: blog.example....
alejorivera's user avatar
21 votes
3 answers
114k views

UnknownHostException: name or service not known

I'm attempting to return some data from an API using OkHttpClient in com.squareup.okhttp. I've run into a few errors that i have eventually been able to overcome but i can't get past this host ...
Jordan Macey-Smith's user avatar
21 votes
1 answer
35k views

Docker Mac alternative to --net=host

According to the docker documentation here https://docs.docker.com/network/host/ The host networking driver only works on Linux hosts, and is not supported on Docker for Mac, Docker for Windows, ...
Shane Gannon's user avatar
  • 7,420
20 votes
3 answers
12k views

rspec route testing and hosts

I see I can test routes with rspec like this: get("/").should route_to("welcome#index") but I have constraints based on the hostname or parts of hostnames and redirects between several ones. How do ...
Pablo Fernandez's user avatar
20 votes
5 answers
10k views

Hosting CLR in Delphi with/without JCL - example

Can somebody please post here an example how to host CLR in Delphi? I have read similar question here but I cannot use JCL as I want to host it in Delphi 5. Thank you. EDIT: This article about ...
Lukas Cenovsky's user avatar
20 votes
3 answers
17k views

USB Host Mode - device access permission granted but not remembered

I have a USB Host Mode application that works perfectly. I plug in the device, Android pops up the Allow the app APPNAME to access the USB device? permission request window, I check the Use by ...
kbro's user avatar
  • 4,871
19 votes
6 answers
26k views

run node.js webbapp on 80 port on windows

I need to make my local node.js webapp listen 80 port. Now if run my app on port 80 I get this erro events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EACCES at ...
silent_coder's user avatar
  • 6,432
19 votes
0 answers
17k views

running network mode “host” on windows 10 with wsl2 and docker

Is there a way to use network mode "host" in the docker container run inside wsl2 using docker desktop? I tried to deploy a docker container inside wsl2 with network mode "host" ...
user8912375's user avatar
17 votes
3 answers
22k views

How many scheme & host tags can come under intent-filter in android manifest

Need more info regarding intent-filter tag specified in manifest. I am aware that we can specify data in two forms: <intent-filter> <data android:host="com.myHost" android:scheme="...
AndroidGuy's user avatar
  • 1,330
16 votes
3 answers
21k views

Django - How to simply get domain name? [duplicate]

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 ...
Maître Van Diest's user avatar
16 votes
5 answers
25k views

List of devices support HCE?

As more and more devices have KitKat, I'm trying to compile a list of devices support HCE. Does anyone have the list? Feel free to add comments to contribute to this list. Below is what I have so ...
Trung's user avatar
  • 1,655
15 votes
5 answers
30k views

Get the current url but without the http:// part bookmarklet!

Guys I have a question, hoping you can help me out with this one. I have a bookmarklet; javascript:q=(document.location.href);void(open('http://other.example.com/search.php?search='+location.href,'...
Bostjan's user avatar
  • 151
15 votes
3 answers
30k views

Can I deploy my ReactJS app on a regular host?

I've seen many guides where people teach you how to deploy your react app on services like digital ocean, heroku, GitHub Pages, aws. But I'm wondering if I can deploy my React app (create-react-app) ...
Julio's user avatar
  • 407
13 votes
2 answers
6k views

Angular2: @HostBinding or host: {}?

I was wondering if there was a drastic difference (and if there is, what is it?) between using @HostBinding and the host attribute of the component ? I have been asking myself that question while I ...
nicolasrigaudiere's user avatar
13 votes
5 answers
19k views

Android USB Host API: bulk transfer buffer size

I am writing software to communicate between tablet (Motorola Xoom with Android version 4.0.3 and Kernel version 2.6.39.4) and a peripheral device using USB Host API provided by Android. I use only ...
syntagma's user avatar
  • 24k
13 votes
4 answers
5k views

Using 3.1's USB host mode with Arduino

Is there a good tutorial for using an Arduino with an Android where the Android device is the USB host? (The Android device has OS version 3.1 (Honeycomb) or later). The only host program on the ...
Joe's user avatar
  • 131
12 votes
2 answers
48k views

Symfony 2 on virtual hosts

I have a problem here with Symfony 2. I want to have virtual host on Windows Vista PC, so I can access my Symfony application like this myapp.local.com. What I have tried: I added these lines to ...
ArVan's user avatar
  • 4,255
12 votes
4 answers
22k views

gpg: keyserver receive failed: No route to host stack overflow

While attempting to set up fastlane for my iOS application, I encountered challenges while installing RVM. My command is gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113******...
Mohit Tomar's user avatar
  • 5,201

1
2 3 4 5
37