|
-
Apr 22nd, 2002, 11:44 PM
#1
Thread Starter
Frenzied Member
How to send message to all computers on the network.
I know this is not the exact place to ask this question from.. but can anyone give any clue how can we use Winsock Control to send the message to all the computers on the network?
-
Apr 22nd, 2002, 11:52 PM
#2
Hyperactive Member
Wouldn't you need a list of all the computers on the network?
-
Apr 23rd, 2002, 02:19 AM
#3
may be some thing like a winpopup which can send to the whole work group
-
Apr 23rd, 2002, 04:12 AM
#4
Thread Starter
Frenzied Member
I've heard it several times that you can broadcast a message to all the computers on the network, giving the network address.
Any one knows how to do it with Winsock?!!!
-
Apr 23rd, 2002, 04:30 AM
#5
Lively Member
do you want like this...........
Originally posted by moinkhan
I've heard it several times that you can broadcast a message to all the computers on the network, giving the network address.
Any one knows how to do it with Winsock?!!!
Did you want to send a message on network only or you want to use in the vb Application which is use for netwroking...
Anyway , here it is...
run command prompt
i.e c:\> netsend computer name " your message" domin name (/// if there wase one or more domain)
so command is :
c:\>netsend comp02 "hi to all"
sandin
-
Apr 23rd, 2002, 04:33 AM
#6
Re: do you want like this...........
Originally posted by sandin
Did you want to send a message on network only or you want to use in the vb Application which is use for netwroking...
Anyway , here it is...
run command prompt
i.e c:\> netsend computer name " your message" domin name (/// if there wase one or more domain)
so command is :
c:\>netsend comp02 "hi to all"
sandin
what OS is that for? Didn't work on win98 for me.
-
Apr 23rd, 2002, 04:39 AM
#7
Netsend 2001 is designed for people who work in Windows NT, Windows
2000, or Windows XP environment to send text messages to another user
sandin which one u are talking about....
-
Apr 23rd, 2002, 06:36 AM
#8
Fanatic Member
Create a simple client and server.
Put the clients on every pc on the network.
While the server, as the name suggested...
U can use either TCP/IP or UDP.
UDP provides *****Peer, better say it one on one.
TCP/IP is more of a one to many.
The ports used by every client is different, but the destination port
(this refers to the server) must be the same(heck of course must
be the same!)
U can accomplish all these easily with winsock
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Apr 23rd, 2002, 02:46 PM
#9
Thread Starter
Frenzied Member
Create a simple client and server.
Put the clients on every pc on the network.
While the server, as the name suggested...
U can use either TCP/IP or UDP.
UDP provides *****Peer, better say it one on one.
TCP/IP is more of a one to many.
The ports used by every client is different, but the destination port
(this refers to the server) must be the same(heck of course must
be the same!)
U can accomplish all these easily with winsock
I knew all of these...Actually I have done it as well..
What I want!! I want to send same message to all the computers on a specific port... using Winsock (In VB)...
And I couldn't understand... you mean the server can have multiple connections on the same port... Well I don't think so...
Thanx for all of you for timely replies.. But I just want to know.. Whether it is possible to do Winsock1.SendData "Hi" and the message goes to all the computers on the network to the port where my VB application is already listening...
-
Apr 23rd, 2002, 03:24 PM
#10
Re: do you want like this...........
Originally posted by sandin
Did you want to send a message on network only or you want to use in the vb Application which is use for netwroking...
Anyway , here it is...
run command prompt
i.e c:\> netsend computer name " your message" domin name (/// if there wase one or more domain)
so command is :
c:\>netsend comp02 "hi to all"
sandin
net send is actually a 2 word command
c:\>net send comp02 "hi to all"
-
Apr 23rd, 2002, 05:03 PM
#11
Fanatic Member
or shell "net send * this message will go to all the computers on your network!!!!"
or if ur really good u can figure out how to use winsock/UDP to send the net send command to port 135.
and winsock can recieve multiple connections on the same port, just index it.
FlameWave Technologies - internet tools
-
Apr 24th, 2002, 06:43 AM
#12
Fanatic Member
No, u misunderstood me.
The server can have the same port.
To differentiate every client, each client will send a unique byte or
ID to indicate which client he is.
Got me?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|