that's pretty standard.
What you would need to do, is set up a port forward in your linksys router: You have to decide on a port for your application to use, go into the linksys admin interface (most likely by webbrowser to http://192.168.1.1 ), and add a rule for a port forward for the number you picked (should be above 1024 so you won't interfere with other programs!) You then point this port to the internal IP address of your computer.
To find out what it is, open a command prompt on your computer and type: ipconfig
(you ought to configure your router to assign your computer an IP statically based on your mac address as well, so you will nkow for sure that its IP address won't change in the future)
From that moment on, any incoming connection to your 'real' IP on that port number will be directed to your own computer, where your program can answer the connection.
If you also want to be able to initiate a connection on your end and connect to your friends system, he would need to do the same on his end as well.
(You nly need the port forward for the computer that receives the initial connection command: You the linksys will by default let any responses through on requests that you initiated yourself)
What you would need to do, is set up a port forward in your linksys router: You have to decide on a port for your application to use, go into the linksys admin interface (most likely by webbrowser to http://192.168.1.1 ), and add a rule for a port forward for the number you picked (should be above 1024 so you won't interfere with other programs!) You then point this port to the internal IP address of your computer.
To find out what it is, open a command prompt on your computer and type: ipconfig
(you ought to configure your router to assign your computer an IP statically based on your mac address as well, so you will nkow for sure that its IP address won't change in the future)
From that moment on, any incoming connection to your 'real' IP on that port number will be directed to your own computer, where your program can answer the connection.
If you also want to be able to initiate a connection on your end and connect to your friends system, he would need to do the same on his end as well.
(You nly need the port forward for the computer that receives the initial connection command: You the linksys will by default let any responses through on requests that you initiated yourself)