Thank you CR! I didn't know what the PINC or PIND defs are. What is the right place to learn their definitions?
BTW, fingers crossed that Nick will see this post. I tried to PM him but I was blocked. Long code to digest alone, if I want to integrate it together with an HTTP client to GET the firmware from our servers.
It would be very useful if I can actually finish this little project and post it somewhere. Anyone using Ethernet or wifi in their project can add a second arduino and do remote firmware update.