Coding Thread, winsock / sockets in vb .net 2008 express in Coding and Web Development; Just as a simple app I wanted something where by I could install either a service or app that runs ...
17th May 2010, 08:18 PM #1
winsock / sockets in vb .net 2008 express
Just as a simple app I wanted something where by I could install either a service or app that runs in the system tray that could use tcp or udp sockets to communicate with a server application that had a GUI where it would display to start with just some info about the connected client computers ie
ip address, subnet mask, hostname , logged in username and maybe other info later on.
I did find this but it is more aimed at a chat app
Creating a Multi-User TCP Chat Application
Getting a bit confused now as I tried that along with a code project example etc and am not sure what bits of code I require and dont require as I dont want to replicate the info from one client to other clients I am only wanting the server application to be able to view this info in a list view or something of the likes
18th May 2010, 09:05 AM #2
Everything you need is in that article, although it's aimed at creating a chat app, all a chat app really is is two way text communication, all you need to do is make it one way. Your client app will contain all the code in the 'Sending Data' section, and your host app on the server will contain the code in the 'Receiving Data' section. The client will only be able to receive data if you tell it to and if another client is trying to send data to the IP address of the machine the client is running on, it won't automatically grab anything being transmitted.
Last edited by LosOjos; 18th May 2010 at 09:16 AM.
27th August 2010, 10:22 PM #3
- Rep Power
I would move away from TCP for something like this and use UDP instead (less overhead), you could then also look at using broadcasting rather than requiring the IP address to be hardcoded or configued in the transmitting side of the application. The use of broadcast messages would depend on your network infrastructure though,
By Kamran7860 in forum Virtual Learning Platforms
Last Post: 23rd November 2010, 06:03 AM
By Crispin in forum MIS Systems
Last Post: 22nd March 2010, 08:32 PM
By Boon72 in forum Windows Server 2008 R2
Last Post: 3rd February 2010, 10:55 AM
By damienharrison in forum Windows Vista
Last Post: 13th March 2009, 11:26 AM
By cookie_monster in forum Windows
Last Post: 9th March 2008, 11:37 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)