Yes, you can apply for this visa from in or outside Australia. To be eligible to apply for a 186 visa while you are in Australia, you must hold a valid substantive visa, or a Bridging visa A, B or C.