Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
I have tried to work with sockets which work over LAN but how to use them to transfer data over internet. cannot find a good example please help me?
Posted

1 solution

Here are some examples over at MSDN for you to check out. If you scroll down there are some web specific samples for you to look into.
Networking Samples for .NET v4.0 [^]

There is a simple example here:
How can I send data over the internet using a socket?[^]
(I apologise to CP for providing link to this site :( )
 
Share this answer
 
Comments
agent_kruger 8-Feb-14 3:31am    
just want to ask in the second link it passes a local ip not public ip.So, how to pass a public ip in it as it gives error on parsing public ip.

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