mediastream.c tool: improve helper and remote IP parsing when only port is provided (assume localhost)