It's not so much the dog doesn't listen, more that he doesn't understand what you want him to do. Go back to basics and don't punish him when he toilets indoors. Double your vigilance and take every opportunity to put him outside to toilet. The crucial thing is to be present when he does toilet in the correct place, so that you can reward him. This makes him keener to repeat the performance to get another treat. Conversely, if you have been telling him off for indoor accidents he may already feel inhibited about going to the toilet in your presence, including when he goes outdoors. This is one reason why it's important not to punish for inappropriate toileting. Can dog aggression be trained out?
Consequences must be immediate Dogs live in the present. Unlike us, they can’t make connections between events and experiences that are separated in time. For your dog to connect something she does with the consequences of that behavior, the consequences must be immediate. If you want to discourage your dog from doing something, you have to catch her with her paw in the proverbial cookie jar. For example, if your dog gets too rough during play and mouths your arm, try saying “OUCH!” right at the moment you feel her teeth touch your skin. Then abruptly end playtime. The message is immediate and clear: Mouthing on people results in no more fun. Rewards for good behavior must come right after that behavior has happened, too. Say a child in a classroom answers a teacher’s question correctly, gets up from his desk, sharpens his pencil and then punches another kid in the arm on the way back to his seat. Then the teacher says, “Good job, Billy!” and offers him a piece of candy. What did Billy get the candy for? Timing is crucial. So be prepared to reward your dog with treats, praise, petting and play the instant she does something you like.
Don’t punish your dog if they pee inside. Regardless of all those old training ideas punishment isn’t a good deterrent for house training. Yelling at your dog after the fact just confuses them and makes them nervous around you. If you catch your did in the act you can try to get their attention & move them outdoors. If you’re successful & they continue going once you get outside praise them like crazy. Are dog head halters cruel?