Dua is different from the fixed prayer (salah). There are no set words or times: a person can speak to Allah while walking, after the prayer, in the night or in trouble. The Quran says that when His servants ask about Him, He is near and answers the call of the caller; and it tells believers to call on Him humbly and in secret. The Prophet Muhammad ﷺ said that the closest a servant is to his Lord is when he is in prostration, so he told Muslims to make plenty of dua there.
The Prophet ﷺ taught that a person should ask with firm hope and not say 'O Allah, give me if You will', because nothing compels Allah. He also said that the dua of any of you is answered as long as he is not impatient and says, 'I made dua and it was not answered.' And Allah says in a hadith that He is as His servant thinks of Him, so a believer asks with good expectation.
What if the request does not come? Islam does not promise that Allah will give every wish in the form we imagine. Muslims believe that Allah knows what we do not know, so the answer may be what is asked, something else, or a delay that has a reason; and that the act of turning to Him is itself valuable. If you are not Muslim, you may find it significant that in Islam nobody needs permission or an intermediary to speak to Allah: He is closer, the Quran says, than a person's own jugular vein.