This letter focuses on jointly solving the congestion, multipath routing, and contention distributed control problem for WANETs. The objective is to find the end-to-end optimal source sessions rate at the transport layer, sub-flow rates for each path of the multipath sessions at the network layer, and persistence probability at the medium access control layer. The primal problem formulation is a non-convex, non-separable network utility maximization optimization. By introducing new variables, applying certain transformations, and using an analogy based on Ohm’s law, we develop a distributed algorithm to find the optimal solution for general concave utility functions.