                 }
                 
                 return str;
+            }
+        
+            if( protocol == Protocols.file )
+            {
+                return "localhost";
             }
         
             return "";

                v = Version.fromString( version );
            }
            
            if( dom == null )
            {
                dom = new HTMLDOM();
            }

    
    import flash.system.Capabilities;
    import flash.system.Security;
    import flash.system.System;

    /**
     * Local Informations provide informations for the local environment.
