832 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-9
votes
1
answer
86
views
How to change localhost:10005 to a custom domain (mysite.local) in LocalWP?
I’m using Local (by Flywheel) to develop a WordPress site.
When I click "Open Site", it opens the link
http://localhost:10005/,
even though my site is named MySite, and I want it to open as
http://...
0
votes
1
answer
290
views
resolve hostnames using /etc/hosts only
I'm trying to resolve a hostname to an IP address using the /etc/hosts file only.
That is, if the name cannot be locally resolved, it must fail (ie. no DNS request sent out).
The standard way to ...
0
votes
1
answer
128
views
How to reach multiple websites in same docker by URL without having to edit my hosts-file
I have a Windows 11 machine that I use run the Docker Engine. One of my docker containers is an Apache-container with PHP.
I want to run multiple websites in this container. In order to tell Apache ...
0
votes
2
answers
103
views
Script to add hosts entries using txt file [duplicate]
I need a cmd scritp to add multiple lines to hosts file from a txt file.
I've found in this post a script by Tony
@echo off
TITLE Modifying your HOSTS file
ECHO.
:: BatchGotAdmin
:--------------------...
1
vote
1
answer
732
views
In Android emulator with sdk 30 or higher, hosts file is reset to default
I need to configure hosts file in emulator with sdk 30 or higher.
To do this I follow next steps from my command line:
emulator -avd Pixel_4a_API_34 -writable-system //run emulator
adb root // ...
1
vote
0
answers
189
views
[Errno 13]:Permission Denied when trying to edit the hosts file with a script in .ps1, in .py and in .bat. Hosts file with full permission to edit
I want to edit the hosts file with a script that will run from the Windows Task Scheduler, but even granting elevated permissions to this script, when it tries to edit the hosts file, access is denied ...
0
votes
0
answers
212
views
Ansible "Failed to resolve hostname inventory_hostname (Name or service not known)"
I have a hosts file that looks like this:
[test]
10.1.1.1 ansible_user=my_username
When I try to run an ansible playbook, which calls this test group as hosts:
- hosts: test
gather_facts: no
...
2
votes
4
answers
8k
views
How to access Next.js Application from a fixed Hostname in Local Environment?
Let's say I have a Next.js Application. Which is working properly. The application is currently accessible through http://localhost:4000 or http://somehostname.local:4000
here, I have set
127.0.0.1 ...
-1
votes
1
answer
479
views
/etc/hosts not working when connected to WIFI MacOS
Any changes to the /etc/hosts is ineffective when connected to WIFI,
When I disconnect it starts taking effect.
I have tried sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder already
0
votes
0
answers
327
views
Confusing behavior when attempting to use the HOSTALIASES environment variable
See here, or man gethostbyname.
It seems to work as expected when run on a simple C program that calls gethostbyname, which I had ChatGPT write, and which includes:
hints.ai_family = AF_UNSPEC; //...
1
vote
1
answer
312
views
Spring server.address=localhost cannot connect from Node.js fetch api
I have solved this, but I still don't know why.
I have a Spring Boot server when I set "server.address=localhost", the server cannot connect any more from Node.js fetch API. But using web ...
1
vote
0
answers
815
views
How to make Chrome allow http request to custom local domain?
I am creating a simple light/dark mode toggle in a create-react-app, with the following code in my <App /> component:
const [darkMode, setDarkMode] = useState<boolean>(() => {
...
0
votes
0
answers
17
views
Add host to Docker Container [duplicate]
I am runnig Keycloak on a container with the default image of keycloak. I am trying to add a host to the /etc/hosts file but it is imposible. I want to change the localhost DN to ldap.demo.local
I ...
1
vote
0
answers
78
views
Modify hosts file Android
I'm trying to modify the hosts file in Java Android to dynamically add new hosts. Is there any way to do this ?
I tried to follow chatgpt response but it doesn't work
0
votes
0
answers
38
views
Failed to parse ansible vault password in hosts.txt file with ini plugin [duplicate]
My hosts file was working fine when I use a normal ansible password. But when I switched it to ansible vault password, I get these errors:
[WARNING]: * Failed to parse /var/lib/awx/projects/Windows/...