Thanks again for the comments, and sorry for my late reply. This solution works!
After changing rc.local, I initially could only connect via the local IP but had trouble when using the External IP. But it was because I did not configure port forwarding properly on my Linksys WiFi router. I followed the instructions here: