Inside is an adverb, adjective, noun, and preposition. In each of its grammatical functions, inside suggests meanings of "inner" or "within": "inside the room" (preposition); "step inside" (adverb); "an inside seat" (adjective); "the inside of the building" (noun). Outside, with a meaning directly opposite that of inside, is also used as four parts of speech. Except when functioning as nouns, neither inside nor outside should be followed by of: One should say "inside the room," not "inside of the room" unless the meaning is "the inside of the room." The correct phrase is "outside the house" unless the meaning is "the outside of the house." Inside of does have an informal use in reference to distance or time: "We passed the car inside of a mile." "The doctor arrived inside of ten minutes." Outside of can also be used to mean "with the exception of," "except for": "He cares for nothing outside of his stamp collection." "Outside of giving you some money, there is nothing I can help you with."
Dictionary of problem words and expressions. Harry Shaw. 1975.