Click here to Skip to main content
11,802,389 members (29,852 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 OriginalGriff 475
1 KrunalRohit 366
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CHill60 220
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web03 | 2.8.151002.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