Earlier quoted context omitted.
> If you're complaining to me about your chronic condition then I will feel compelled to give you advice on things that I think might help you. Heh, I have to admit I chuckled at that one. To be honest, I felt somewhat similarly earlier in my life. In all seriousness, I highly recommend group therapy. You will discover that no matter how much you feel "compelled" to give advice in moments when people are looking for…
You can’t tell if someone is looking for advice or support and connection. If you assume, like you suggest, you’re going to get it wrong sometimes. I’d personally never waste someone’s time with my problem if I didn’t genuinely respect and value their perspective. I’d also consider advice to be support though. Not everyone is looking for silent head nodding.
You can always ask. Seriously! Some communications books literally recommend you ask whether they want support/connection/advice.
And you will rarely go wrong if you commiserate. So: Commiserate first, and then say "I have some ideas on what may help, ... " and what follows is context dependent.
If it's a chronic health issue that you have not dealt with: "but you probably know more about this than I do and probably don't want to hear yet another idea."
If it's a chronic health issue that you have dealt with: "and they solved a similar problem I had, but I'm not sure your situation is the same as mine."
Trust me - if they want to hear your solution, they will then ask.
If it's very generic advice that people commonly treat as a panacea (e.g. diet, exercise, supplements, meditation, mindfulness), better to commiserate and keep your advice to yourself.