improved network url in (dev) cli (#72634)
Continues: https://github.com/vercel/next.js/pull/57882 with added test
and rebased history
Closes: https://github.com/vercel/next.js/pull/57882
---------
Co-authored-by: Ward Werbrouck <34573943+kletse@users.noreply.github.com>