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?
Printable View
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?
Wouldn't you need a list of all the computers on the network?
may be some thing like a winpopup which can send to the whole work group
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...Quote:
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?!!!
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.Quote:
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
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....
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..Quote:
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
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...
net send is actually a 2 word commandQuote:
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
c:\>net send comp02 "hi to all"
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.
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?