This is a cache of https://discuss.96boards.org/t/use-adb-to-test-that-port-80-is-redirected-to-8080/1554. It is a snapshot of the page at 2024-09-20T05:28:36.926+0000.
Use adb to test that port 80 is redirected to 8080 - DragonBoard410c - 96Boards Forum

Use adb to test that port 80 is redirected to 8080

I have added this entry to the init.qcom.post_boot.sh file:

iptables ­-t nat ­-A PREROUTING -­p tcp ­­-dport 80 -­j REDIRECT–­­to­-port 8080

So is there a way to test this is working via adb after the reboot sets the redirect?