The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [hosts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
68 views

Rooted phone but cannot change hosts file

I rooted on my S8+. I used the app root checker to check that it's rooted. I was attempting to block ads by hosts files with this tutorial I attempted to copy the hosts file to my pc, changed it, and ...
1
vote
1answer
63 views

How to ping a local network host by hostname?

I recently wiped my phone and now I am unable to ping a machine by the hostname. Pinging by IP works. I have a machine, let's say it is called NAS. From my Router and PC, ping NAS finds the machine. ...
1
vote
1answer
44 views

How to make Termius look for hostnames on the local network first?

I have four devices: Windows 10 PC Android Phone (v6.0.1) Internet Router "servername" (Raspberry Pi 4) All are connected locally using Wifi (not that it should matter) using the simplest possible ...
-1
votes
1answer
45 views

Hosts doesn't work

So i play a game that uses a server to detect emulator users. Is there anyway to prevent other emulator users from being in my online game ? The problem is that other emulator users usually use ...
0
votes
0answers
53 views

Modifying etc/hosts file doesn't work for redirecting to something else

I need to do it for security testing purpose of an app. I have a rooted emulator which runs 7.1.1, It is rooted, I changed hosts file by using echo command, root file explorer, adb push and every else ...
0
votes
0answers
234 views

How to access https://wex1.in without rooting?

This financial website got it’s domain name deleted but it’s still possible to reach it by adding 104.25.31.35 wex1.in to etc/hosts files on a ᴘᴄ. So how to access the website without editing /etc/...
0
votes
1answer
4k views

How to use adb to push a hosts file in a non rooted device

I am trying to modify the hosts file in my android device without any rooting and after a quick search I came across this adb method to push hosts file to a non rooted device. I followed all the ...
0
votes
1answer
338 views

Edits hosts file ignored by chrome

I'm trying to cut down on procrastination in a fun way (read hacking) by rooting my phone (moto g2) and editing the /system/etc/hosts file like this 127.0.0.1 localhost ::1 ip6-...
3
votes
3answers
3k views

Edit hosts file on android studio messed up my emulator

I had to edit my emulator' hosts file in order to connect to a local development environment. I have followed this steps: Run the emulator: ~/Library/Android/sdk/tools/emulator -writable-system -avd ...
2
votes
1answer
505 views

Android ignore the hosts (etc/hosts) when it's in LTE network?

I use hosts to block some sites, which works in WIFI connections, but when I am in LTE mobile network, these sites seems accessible, I thought somehow android ignore the hosts. I am in Lineages OS ...
0
votes
1answer
343 views

CMD cannot “read” my phones /etc/hosts file when editing it via adb

I have to configure my /etc/hosts file on my rooted device(Lineage OS). I can see the content with cat but when I try to open it with vim/nano/vi I only get these questionmark boxes. Screenshot: https:...
0
votes
0answers
1k views

Disable AdChoices with hosts file

I have a rooted Moto G4+ and I have "AdAway" and "AdBlocker Reborn" installed. However in the Chess.com app, I still get ads from AdChoices on the main page. Does anyone know which domain I can block ...
10
votes
3answers
55k views

How to edit 'etc/hosts' file in non-rooted phone?

I'm using LineageOS 14.1 and don't want nor need to root it. How can I remount /system rw and edit /system/etc/hosts? All answers in "How to edit 'etc/hosts' file?" expect a rooted phone.
1
vote
0answers
100 views

Editing hosts file to restrict website on wifi and mobile data

I have a rooted Samsung Note4 that is running cyanogenmod. I have gone in and edited my hosts file to restrict access to certain websites. However, I have noticed that the restrictions only works when ...
-1
votes
1answer
177 views

Block URLs and encrypt hosts file

I am looking to block a few URLs from an android device... however, I would like to take an extra level of security and password protect the hosts file. I think I can do that with ES File Explorer ...
1
vote
1answer
46 views

How to determine to what hosts Android apps are connecting (root)?

How does one determine to what hosts Android apps are connecting (or trying to connect)? Want to know this information even if the host is being blocked by an entry in the hosts file. Assume the ...
0
votes
1answer
820 views

YouTube and AdAway whitelist?

I use AdAway to modify my hosts file with quite a few aggressive sources. Unfortunately when my filters are active I can't see any channel or user pictures in the YouTube app. I can't figure out what ...
0
votes
0answers
2k views

How do you edit the hosts file on rooted Nougat

I have a Google pixel xl that I have rooted. On my G3 I was able to use Hosts Editor (https://play.google.com/store/apps/details?id=com.nilhcem.hostseditor) without any issues. When I tried on my xl I ...
5
votes
1answer
7k views

Blocking advertising in Nougat 7.0

After upgrading Marshmallow to Nougat I found that hosts-file based ad blockers do not work. I have tried AdAway, setting it to use a symbolic link to the hosts file, and verifying via file explorer ...
1
vote
1answer
3k views

How do you get AdAway to update the hosts file on 7.1 Beta?

I'm trying to get Adaway to work on 7.1 beta on my Nexus 6P. Unfortunately, the flashable zip did not work to move the hosts out of system. Neither did the flashable hosts file. I tried some of the ...
0
votes
0answers
351 views

Can't connect to Play Store. Which app keeps modifying my “hosts” file?

So I am using a rooted Galaxy S6. I am familiar with the hosts file in the Android system and how it works. I modify the hosts file to block ads every once and a while. Recently, I haven't been able ...
4
votes
1answer
232 views

Why is Android showing a different hosts file once my system is booted versus in recovery?

In the past, I've used a modified hosts file on my system that I place at /system/etc/hosts. The process is pretty straightforward Boot into recovery using a custom recovery. Mount /system read-write ...
1
vote
3answers
3k views

/etc/hosts file is ignored (android)

I changed my hosts file using ES Explorater after root to 127.0.0.1 youtube.com but it still takes to the real website, I tried on chrome browser and the default browser. I found the same problem on ...
0
votes
1answer
786 views

Cannot mount /system rewritable

I have rooted my phone and changed /system/etc/hosts file to block Facebook(just for test). However, since I did it, I am not able to edit the hosts file again. As a result, I cannot visit Facebook ...
1
vote
1answer
354 views

Edit hosts file from terminal IDE with root accessed

My terminal IDE accessed root but cannot edit hosts file. root@172.16.0.151:/system/etc #vim hosts But vim just opens hosts file as readonly. Where do I missed here?
1
vote
1answer
73 views

SM N900A rooted Google Play Store Immediate Shutdown Hosts File Deleted

Recently i rooted my phone. Note 3 att. using kingo root.it worked fine google play was fine but after some days some shitty thing started to happen and my facebook, gapps were all shut.no updating. ...
1
vote
0answers
439 views

Why my hosts file is not saving/resetting after editing it?

I need to add # before the command line (so I can login into my google account which is a common problem). I rooted my device (I'm using a huawei P8) and tried using total commander and root ...
0
votes
1answer
283 views

Rooted device, modified the hosts file and rebooted but still have access to blocked sites

I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong? Modifying hosts file does not have any effect I followed exactly what the op did and ...
2
votes
0answers
521 views

Is blocking ads with hosts file slow?

For instance, Adaway offers a hosts file with 300K addresses to block. It works, but will this significantly impact performance, therefor battery life? When does the system access the hosts file? ...
2
votes
1answer
10k views

Modify hosts file on Android without rooting device

Is it possible to add entry to hosts file on Android without rooting phone? I am contractor working in remote and I have to use AirWatch and Cisco AnyConnect to get access to VPN, but if I root ...
0
votes
2answers
2k views

Modifying hosts file does not have any effect

Since I spend too much time on websites such as 9gag.com and the like, I decided to try and block them by modifying the hosts file on my rooted Nexus 5. So I created a new hosts file using notepad++,...
39
votes
3answers
212k views

How to edit 'etc/hosts' file?

I'm using Nexus 5 on Android 4.4. Kitkat. I would like to edit /etc/hosts file and add redirect mappings in order to block few ads. I need to know how to access/modify/replace /etc/hosts file. I ...