Question: what is the difference between how are you and how do you do?
Answer: They mean the same thing, but "How do you do?" is more formal and reserved for the first time you meet someone. "How are you doing?" is more casual and could be used at introduction, but generally is used when you are fairly familiar with a peer.