Serve -> Browse doesn't always work
Created originally on Bitbucket by sborho (Steve Borho)
On my parents' computer, Serve -> Browse doesn't work, because their hostname/domainname evaluates to this really long, ugly, Comcast-ey thing.
It does serve pages, though the hostname it runs with isn't valid / doesn't respond.
Perhaps we should try doing a series of quick requests (connect or nslookup) before attempting to launch the browser?
- Try full "hostname.domain".
- If (1) fails, try "hostname".
- If (2) fails, try "127.0.0.1".
- If (3) show an error dialog instead of (5) opening the browser.
- Show the browser
If any of 1-3 pass, skip ahead to 5