We are arriving in Naples by train and taking a ferry to Sorrento. According to google maps it is about a 35 minute walk from the central train station to the ferry port. We like walking. Would it be a pleasant walk? Interesting sites and food along the way? We will have roller bags and small backpacks.
If you don't mind the long walk, if you take Corso Umberto I, it's a nice elegant street.
I highly recommend Google Maps Street View to see if it looks like something you would want to do. Of course, that won't tell you how hot it might be.
If you can walk that gar with your bags, why not? You'll see more of the city than you would by bus or taxi.
However, the area near the train station can be skeevy, or at least it was when I was last there a few years back. No one is going to accost you with a knife, but if you are uncomfortable about these types of neighborhoods around large train stations in many cities,, see if you can do some more reading about that area.
I was there in November 2024. Train station is lively, busy, police patrolled and crowded. Walk without bags might be doable but over uneven cratered pavement, I'd be wary. My concern especially in Naples was the condition of the pavement, people talking on phones, people smoking, people eating and people using phones to track to their destination. I found it a fairly cumbersome environment to move in and watching where I was walking! I guess I should add on a personal note am 70+, active, but in November 2021 somehow, someway found myself with a stress fracture in my leg and had to leave Paris early as I could not walk. So am very leery of watching where I walk.