Click to See Complete Forum and Search --> : How to retrieve computer names over network?
lkivik
Apr 20th, 2000, 07:35 PM
Hi!
I'm on a project of making Winpopup-like application. I use Visual Basic 6.0 in Windows 98. How can I retrieve all the computer names that are connected with each other trough LAN?
And what is the simpliest way to send (and recieve)a message (the content of a textbox) to (from) another computer over LAN?
In Advance
THANKS!
Lauri.
asmodia
Apr 20th, 2000, 08:13 PM
OK I think if you're using a TCP/IP network you should use a winsock control. Thumbs up!
If your on a star network (you have a central server) you could try making each computer send it's computer name to the server in file format, so that the other machines can see who's online and what the other computers are called.
For example machine S5F4W1 opens the program. The program appends to a file on the server, and reads from the file to see whoelse is online. Then when the program unloads it removes reference to it's computer-name from the file.
Alternatively if the program you're making is a program just for the network you are using and you do not want to distribute it, you could try sending information about your computer name to an IP address on the network.
For example, you log on to this program and then you send your computer-name to all of the IP-addresses in the network then they know you're on.
I think I would use the first one, it's not as messy. But make sure you take a look at the communicating over a LAN article in VB-Square. Try doing a search for winsock to find it.
Sorry if this didn't help you much. Reply if you need to know anything else.
efrat
Apr 22nd, 2000, 04:58 PM
Hi
i wrote app that make it
i will send you but send me your mail.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.