Results 1 to 12 of 12

Thread: How to send message to all computers on the network.

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    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?

  2. #2
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    Wouldn't you need a list of all the computers on the network?

  3. #3
    khalik
    Guest
    may be some thing like a winpopup which can send to the whole work group

  4. #4

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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?!!!

  5. #5
    Lively Member sandin's Avatar
    Join Date
    Nov 2001
    Location
    From Your Heart!!!!
    Posts
    68

    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

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  7. #7
    khalik
    Guest
    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....

  8. #8
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  9. #9

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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...

  10. #10
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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"

  11. #11
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    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

  12. #12
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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
  •  



Click Here to Expand Forum to Full Width