Just how are you trying to connect? eg. are you trying to use file sharing or have you set up a server?
Either way all you have to do is set the firewall to allow the other computer to connect on whatever port your using.
To be of any more help need a few more details really, eg. what service are you trting to connect to?