Skip to content

Instantly share code, notes, and snippets.

View phunkren's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿
2️⃣0️⃣0️⃣

Andrew James phunkren

🏴󠁧󠁢󠁳󠁣󠁴󠁿
2️⃣0️⃣0️⃣
View GitHub Profile
@phunkren
phunkren / etc-hosts-on-win.md
Created November 5, 2020 12:24 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad