New answers tagged

0

My answer to How to use Android device as router without cellular connection? includes a shell script that does exactly what you want using hostapd/wpa_supplicant and dnsmasq, the only extra thing to be done is internet sharing: # allow IP forwarding echo 1 >/proc/sys/net/ipv4/ip_forward # allow forwrding through firewall iptables -I FORWARD -i $...


0

You need to set proxy in Wi-Fi settings on your PC too. The reason is that hotspot network cannot be configured to use proxy without modifying NAT rules and/or kernel routing table at OSI layer 2/3. Proxy is used on per-connection basis by apps themselves, it's not enforced system-wide. For details see Why proxy set on Android does not work when used as ...


0

NOTE: Solution suggested here requires root access. I would like for all requests by connected devices to be redirected to my webpage When you create hotspot, Android runs dnsmasq as DHCP/DNS server (up to Android 9). We can use this DNS server to resolve every domain to your desired IP address. But you need to make sure the connected hosts don't use ...


0

An answered by @p057 you need to set proxy in Wi-Fi settings on your phone. The reason is that hotspot network (AP or ad-hoc) cannot be configured to use proxy. Proxy is used on per-connection basis by apps themselves. It's not enforced system-wide. For details see Why proxy set on Android does not work when used as hotspot?


1

Your question is related to understanding of OSI model. Proxies use http/https or socks protocol, I assume you are talking about http which is an Application Layer (L7) protocol in OSI model. When an application generates http message, it's handed over to lower layer. In case of https, message is encrypted by SSL/TLS which are L6 protocols. At L4 the message ...


Top 50 recent answers are included