If i got this right you want your client software to connect to your server software through your router from outside of your network?
If that is the case you need the client to connect to your server side external ip adress(you can get it here
http://www.whatismyip.com/[
^]), then you have to forward the port from the router to your computer.