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.
Success is usually attained in small steps. Training sessions with your dog should last 10 to 15 minutes, two to three times per day. This is especially true for puppies because of their very short attention spans. Longer sessions can cause an adult dog to become bored. Start by teaching basic commands. Try to stick with one action per training session so your dog does not get confused.
You should always accompany your puppy outside for potty breaks. You’re there not only to ensure that he actually goes, you’re also there to reward your puppy with a treat for going in the proper spot. Wait until your puppy finishes eliminating and immediately give him a tasty reward for a job well done. If you wait until you get back in the house, your puppy won’t make the connection between his elimination and the reward.
Seeking professional help doesn't mean ditching your DIY training program. You can find a professional dog trainer who offers private training sessions, and some trainers even offer online sessions. Many dog owners prefer to join a local dog obedience class so they will be under the supervision of a dog training instructor without the higher cost of private sessions. Plus, classes challenge your dog to learn around the distractions of other dogs.
Though it differs by each individual dog this is the time when most will come up with their own little way of letting you know they’ve got to go. It might be crying at your feet, ringing a bell you’ve set up or waiting at the door — just be sure to pay attention to these signals & follow up. Once your dog knows how to get your attention when he’s got to go you can relax a little and congratulate yourself on a job well done.