With the production version of Oracle XE the default is to not allow remote access to the web server. This sometimes causes even local access to not work. To fix run the following as sys:
exec dbms_xdb.setListenerLocalAccess(false);
Access to the web server will now be enabled.