If you have any respect for your marriage or your husband you will stop talking to this guy and tell him you cant be friends anymore. If you are having problems in your marriage-then talk to your husband about it and try to fix it together as a team. If you need professional help such as marriage counselling-go and get it.
Talking to some other guy about your marital problems and leaning on him for emotional support-doesn't do anything to fix the emotional disconnect in your marriage-it just makes the problem worse and pushes you and the man you love further apart and makes you vulnerable to thinking "is the grass greener".
i suggest you get off the computer, your hubby stops watching TV and start planning date nights, romance and fun together at least once a week. Get the spark back and do whatever it takes to bring the two of you closer
Good luck