Client / Server Sockets - Port forwarding help.

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 50
Reputation: KillerOfDN has a little shameless behaviour in the past 
Solved Threads: 1
KillerOfDN KillerOfDN is offline Offline
Junior Poster in Training

Client / Server Sockets - Port forwarding help.

 
0
  #1
Dec 22nd, 2008
Hey guys, I have a problem with a game me and a friend are creating... We have just set up a Server and Client through the use of Sockets... My friend (at an external location to me) can connect to my server when I forward the port we choose (in our case Port 3000). If the port is not forwarded however he can no longer connect, this will be no good when we eventually deploy our application. My question is simply, how can he connect to my external IP on a given port without me having to forward ports on my router?

Many thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Client / Server Sockets - Port forwarding help.

 
0
  #2
Dec 23rd, 2008
He should know your IP through configuration settings, and ports he could random port number and try to connect if failed generate another one.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Client / Server Sockets - Port forwarding help.

 
1
  #3
Dec 23rd, 2008
Simple answer is unless your PC has an externally visible IP, you will need to use port forwarding.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 50
Reputation: KillerOfDN has a little shameless behaviour in the past 
Solved Threads: 1
KillerOfDN KillerOfDN is offline Offline
Junior Poster in Training

Re: Client / Server Sockets - Port forwarding help.

 
0
  #4
Dec 23rd, 2008
Originally Posted by LizR View Post
Simple answer is unless your PC has an externally visible IP, you will need to use port forwarding.
My friend connects to the External IP address, and gives a port number in his C# application (e.g. 77.52.xx.xx:3000) and this only works when the Port 3000 is forwarded to the Internal IP address (e.g 192.168.x.xxx) on the computers.

Thanks for the suggestions
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Client / Server Sockets - Port forwarding help.

 
0
  #5
Dec 23rd, 2008
Which is what I said, unless your PC has a direct IP on the internet, you would need to use port forwarding on the router.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC