Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to send data from one C# application to other over the internet.
The data to send includes only variable values.
What I really want to know is how to connect two C# application over internet and send data between them.
I have already made the GUI.Now I want to send data.
Please help.

DESCRIPTION OF THE PROGRAM

This is a game called Cows and Bulls and one of the player has to guess the number the second person has in mind with the clues given by the second person.I want to transfer the guesses(which are integers)from the first person to the second person and the clues from second person to the first.



What I have tried:

I have tried googling and also asked a question on stackoverflow but so far I didnt find any result
Posted
Updated 16-Feb-16 4:20am
v2
Comments
ZurdoDev 16-Feb-16 9:02am    
I believe sockets are what you want, see https://msdn.microsoft.com/en-us/library/w89fhyex(v=vs.110).aspx
PenguinFreek1998 16-Feb-16 9:21am    
I got the code but its not working as it is meant to be.
And I also need the explanation to tweak it to my need.
Leo Chapiro 16-Feb-16 9:26am    
Who are you and what do you doing in the thread of "Member 11349428231"?
PenguinFreek1998 16-Feb-16 9:30am    
I was Member 11349428231.I just changed my display name in codeproject.I am the same guy.
ZurdoDev 16-Feb-16 9:37am    
What is the problem?

1 solution

It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc,
Communication b/w two Windows applications on LAN..

—SA
 
Share this answer
 
Comments
PenguinFreek1998 16-Feb-16 10:22am    
Let me check it.Anyway I thank you for using your time to answer to my question.And from your reputation I take it that you are a expert.
Sergey Alexandrovich Kryukov 16-Feb-16 11:10am    
Please do. I hope it will help you and you will accept the answer formally.
By the way, the formal point score is not correlated very well with the real level of expertize.
—SA

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