Your description of the problem is exceptionally broad and can result from several factors. Did you set inbound/outbound rules to accommodate for the connection?
Unless you are hosting this for a couple of friends to drop by and try it out with you, i would not recommend hosting the server on your machine at all.