| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: How to connect p2p with two computer on two different LanNet Works |
| redbluevn redbluevn@yahoo.co.uk From: hn, AZ Vietnam Posts: 2 Member Since: 11/10/04 |
posted November 10, 2004 1:38 AM Hi, I am writing a program to exchange data with 2 computer on two different Lan Network. The first Computer is as a Server. second computer is as a Client. First computer --->ADSL ---->Internet<---ADSL<---Second computer. When first computer turn on it's IP will send to second computer and create a listener. Then Second computer will use the IP to create a socket to First Computer. And I face with the problem is second computer don't know first computer because IP of first computer is IP of ADSL. Can you show me how to connect from second computer to First computer? if you can, please send to me some source code in C#. Thanks you very much Chinh Tran. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 10, 2004 8:50 AM One or both of the computers are probably behind a router that does NAT (network address translation). In that case you would have to configure the router (as per the router manufacturer's documentation) to allow incoming and/or outgoing connections. Unfortunately I don't have any examples since it would not be something done in the code. |
| redbluevn redbluevn@yahoo.co.uk From: hn, AZ Vietnam Posts: 2 Member Since: 11/10/04 |
posted November 10, 2004 8:47 PM Hi Tony, When Secon computer connect to first computer and then it download some file on first computer. Do I need config Route for Second compouter? and If I use a Sever as: First Computer ---> ADSL --> Internet --> Server <--- Internet <----- ADSL <---Second Computer Do you have any solution to both of computer could talk together? Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 10, 2004 10:51 PM This is not a question I can answer without access to the documentation for the router at both ends of the network. This is something that will have to be determined at your end prior to using our components. If you are unable to resolve it, please contact support@dart.com to see if there are other options besides the forum that you can use to get assistance. |
| nourhassanien nour_hassanien@hotmail.com From: mansoura, Egypt Posts: 2 Member Since: 05/14/06 |
posted May 14, 2006 11:33 AM hi all i have the same problem ?/ but this issuse not realted to the router NAT because some programes like msn Messenger or Yahoo Messenger work probley with any problems this the router please >>> if we need from the Dart Solution to post an example of how to use its component in WAN Chat Because my Company is interested with the PowerTCP component and will use it if it will succeed in this problem and prove its ability to make WAN chat programmes thank you Nour Hassanien www.NourSystems.com EGYPT |
| Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted May 15, 2006 4:29 PM Hi Nour, It seems you would be using Dart tools to create a P2P app that will enable multiple machines to connect over the Internet. This is very much possible. Will you be using TCP? If yes, then you will be port-forwarding your the TCP port that will be used, and making sure that this port is not blocked for incoming/outgoing communications. As explained previously in this thread, you might need to setup firewall/routers for port-forwarding and for incoming and/or outgoing connections. Regarding the Yahoo and MSN messengers working, please note that they work on a range of TCP and/or UDP Ports. If their respective ports are open, they will connect. To make sure your app works too, your app's ports needs to be open (that is forwarded by the router/firewall) and connection unblocked. Also note that your app should be using external IP addresses, not the local IP addresses. For using UDP to create a WAN Chat application, please note that most of the routers block UDP packets from crossing out of their network. If this property of the Routers is disabled and other routers accept UDP packets, this can be made possible. Unfortunately we don't have any examples since it would not be something done in the code. Regards, Raj |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|