Questions tagged [hosts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Systemless hosts vs. regular?

Are there any advantages of using systemless hosts file? I have Magisk, and pretty big hosts file, don't know if it matters.
0
votes
0answers
13 views

How can I know the hostname of an Android phone for use in SSH connection?

When setting up public key authentication on SimpleSSHD server on my Android phone, by http://www.galexander.org/software/simplesshd/ Quick start Install SimpleSSHD. On any computer which ...
1
vote
1answer
21 views

How to use “/etc/hosts” file as only DNS on Android?

On my Android-based device I need to block access to all websites except ones are in a whitelist. I know that on desktop Windows I can list allowed hosts in the hosts file and then switch the DNS in ...
0
votes
1answer
239 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
224 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
57 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
62 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 ...
1
vote
1answer
279 views

How to always resolve a domain name to a fixed IP without rooting?

The financial website https://wex1.in 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 ...
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 ...
1
vote
1answer
351 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
518 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
348 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 ...
11
votes
3answers
59k 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
204 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
872 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
357 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
233 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 ...
2
votes
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
798 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
368 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
444 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
291 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
522 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++,...
10
votes
3answers
54k views

How to set up a host to IP mapping on unrooted Android?

I've a website running on my computer, and I want to test it from my Nexus 7 tablet. I.e. over the local WiFi LAN. If I type in the IP address it connects, but shows the wrong web site, because I'm ...
39
votes
3answers
214k 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 ...
5
votes
1answer
113 views

Is it possible to do DNS resolution based on connection?

On my Galaxy Note 2 phone (Android of course), is it possible to edit the hosts file so that it resolves example.com to a public IP BUT resolves it to a local private IP if connected to WiFi with a ...
3
votes
2answers
881 views

How to block access to a website?

Is there any way to block access to a particular website through the stock Android browser?