You asked

What focal length should I use on a sony a6400 for portraits during my everyday walks?

On the Sony a6400, a portrait focal length of about 57mm gives the same framing as 85mm on full frame, the classic portrait length. Portraits often sit between 70mm and 85mm full frame, which is roughly 47mm to 57mm on this camera. The focal length converter explains the 1.5 crop factor if you want to check other lengths. For everyday walks, where you may shoot people you pass rather than posed portraits, a zoom that covers this range is more useful than a single prime.

The Sony a6400 page has no body stabilisation, so the guide favours stabilised lenses:

The Sigma 18-50mm f/2.8 DC DN Contemporary is also a fast, compact choice that covers 57mm. The page does not list it as stabilised, so it leans on good light.

For walking, the guide's street page is a useful reminder that a fixed length makes you choose the frame before you raise the camera, which suits a small kit.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.