By asking the court here in New Jersey for permission to serve papers in a couple of ways intended to give your spouse actual notice of the divorce. You may have to hire a local constable, sheriff or process server in your spouse's home state. Sometimes you also send copies by certified mail to your spouse's residence and publish a legal notice in a newspaper selected by the court, if you don't know where your spouse is. I can manage that. Publishing a legal notice in a newspaper can be expensive.
Lawyers usually charge by the hour.
However, the more contentious your case is, the more it could cost. Local disciplinary rules strictly prohibit lawyers from taking divorce cases on a contingent fee basis. I'm short on cash. My spouse has all of the money. Ask your spouse to pay your legal fees.