Click here to Skip to main content
11,717,509 members (82,664 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Javascript TCP/IP TcpClient , +

i am trying to write some kind of a simple information System. My Server is written in c#, it sends every minutes udp heartbeats with Server Information (ip, port of the Server). Now i want to write a simple Website with html and JavaScript that connects to my Server and receives data from it. If a webclient receives an udp heartbeat the Website should connect to the tcp socket of the server. Is there a simple clientside solution for this? I know i can do such things with flash or silverlight, but i do not want to use any kind of plugins.

Kind Regards
Posted 5-Nov-12 10:37am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can set up a TCPListener depending, if you google the class there is a very straght forwad example.[^]

make sure that you select the right version of .net for your client implmentation for the example.
m.bleimuth at 5-Nov-12 16:44pm
the c# program with the tcp Server is not the Problem, the Problem is the udp and tcp Client in JavaScript for the Webpage.
Mathlab at 7-Nov-12 9:17am
You might want to add this to improve your question

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 689
1 OriginalGriff 255
2 F-ES Sitecore 210
3 Jochen Arndt 120
4 Maciej Los 120
0 Sergey Alexandrovich Kryukov 1,144
1 Maciej Los 509
2 OriginalGriff 505
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 5 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100