Results 1 to 3 of 3

Thread: Getting message from a local port

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    HK
    Posts
    2

    Talking

    There is message transfer between two computers (e.g. A & B)through a specific port number (e.g. 100) by an application.

    How can I write a VB program ( on computer B) in order to get the messages sent from computer A to B at port 1000?
    Pauline

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    You will have to write a listener (server program) that will listen for connect requests on the port. When the request arrives, it will establish a session and wait for the messages.

    See Using the Winsock Control for more information.

    If you still need help, write me. I do a lot of TCP/IP programming on a number of platforms.

  3. #3
    New Member
    Join Date
    Nov 2000
    Location
    UK
    Posts
    4
    Ok, firstly, If you have never tried this before read that link that "ccoder" has placed, its useful, secondly you can use any port, just dont use ones like 21, 80, 6667 cause your other apps WILL NOT like it.

    The next step is UDP, this is the control in Winsocks for chat apps, you really have to learn how to do that, it is a little hard at first but very soon you'll get to grips with it.


    Just out of point, took me 3 hours to learn it, I have been converting the message command, into a fully secure command interface for the server that I have been programming for several months now and it is a very usefull command to use, good luck
    MS Basic isnt basic, its an illusion I tell you a lie, dont believe it!

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