I know I keep mentioning this, but it is SO IMPORTANT for you to understand that in the dog potty training process, there are going to be accidents. What you do when your dog has an accident is very important. Yes I know that nobody likes cleaning up after the fact but if you react negatively your dog will start to associate your anger or frustration with him going to the bathroom and will be afraid to eliminate around you. I would say this is the biggest mistake people make while dog potty training.
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.
^ Herron, Meghan E.; Shofer, Frances S.; Reisner, Ilana R. (2009). "Survey of the use and outcome of confrontational and non-confrontational training methods in client-owned dogs showing undesired behaviors" (PDF). Applied Animal Behaviour Science. 117 (1–2): 47–54. doi:10.1016/j.applanim.2008.12.011. ISSN 0168-1591. Archived from the original (PDF) on October 29, 2012.
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.
As your puppy becomes more reliable about using his toilet area and his bowel and bladder control develops, he can begin to spend more time outside his room or pen with you in the rest of your home. Begin by giving him access to one room at a time. Let him eat, sleep and play in this room but only when he can be supervised. When you cannot supervise him, put him back in his room or pen.
Let your new dog gradually earn freedom throughout your home. A common error that many pet parents make is giving their new dog too much freedom too soon. This can easily lead to accidents relating to housetraining and destructive chewing. So, close off doors to unoccupied rooms and use baby gates to section off parts of the house, if necessary. One of the best ways to minimize incidents is to keep your dog tethered to you in the house and by using a crate or doggie safe area when you can’t actively supervise him.
Unfortunately, there is no magic length of time or milestone age when a puppy can be considered fully housetrained and there are many factors that go into how quickly a puppy can be potty trained. Your puppy’s age plays a major role during the initial phase of potty training, as a very young puppy won’t have the muscle control necessary to hold it for long periods of time.
Remember that training is an ongoing process. You will never be completely finished. It is important to keep working on obedience training throughout the life of your dog. People who learn a language at a young age but stop speaking that language may forget much of it as they grow older. The same goes for your dog: use it or lose it. Running through even the most basic tricks and commands will help them stay fresh in your dog's mind. Plus, it's a great way to spend time with your dog.