Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
| update_config=1 | |
| country=US | |
| network={ | |
| ssid="YOURSSID" | |
| psk="YOURPASSWORD" | |
| scan_ssid=1 | |
| } |
| char IP[] = "xxx.xxx.xxx.xxx"; // Buffer | |
| IPAddress ip = WiFi.localIP(); | |
| ip.toString().toCharArray(IP, 16); | |
| //IP now contains IPAddress |
Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
| /** | |
| * Awesome website | |
| * @author YOUR_NAME_HERE | |
| * @version 0.1 | |
| */ | |
| /* ============================ RESET ============================ */ | |
| /* ===== Eric Meyer Reset ===== */ |