Click here to Skip to main content
15,887,304 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi Friend

I want to communicate two pc at different location using internet by TCP/IP protocol.
can any body help me ,How can i achive it in vb.net desktop application.
Posted
Comments
ravi kumar86 24-Aug-12 7:15am    
i want it on internet not LAN

There are endless samples of code available via Google: search for "VB.NET socket".
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Aug-12 5:05am    
Well, not the only one (by far), and not the most recommended, in fact. Will you see my answer?
--SA
Richard MacCutchan 16-Aug-12 5:09am    
What do you mean "not the only one"? All I suggested was doing a Google search for the many possibilities that exist.
Sergey Alexandrovich Kryukov 16-Aug-12 12:50pm    
I just mean that the level of socket API is only one of the few level one can use. You suggest to search in "VB.NET socket". It would leave out more straightforward TcpClient/TcpListener, and also remoting, WPF and some other things. Please see my answer to see what I mean...
--SA
ravi kumar86 16-Aug-12 5:43am    
dear sir,
i want to communicate over WAN not LAN,
the pc are at different networks, so how can i communicate ?
Richard MacCutchan 16-Aug-12 5:59am    
Same issue, TCP/IP goes anywhere.
You can do it on different levels. Please see my overview of them in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900