In the case of a gay couple or a single man, the only two legal countries are the United States and Canada. Since the U.S. has a federal structure and Canada has its regulation by provinces, we will have to review state by state or province by province what the requirements are and if they fit our specific case.
In Canada, any state will accept a couple of men as fathers of the baby regardless of whether they are married except Quebec where surrogacy is prohibited. In the U.S., only a few states such as California or Nevada will accept this situation; and in other states, such as Texas or Utah, the couple must be united in marriage to be accepted as the baby's parents.
Suggested for you: How Does Surrogacy Work for Gay Couples?.