Results 1 to 9 of 9

Thread: sending a packet of data to a known IP address and port

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    sending a packet of data to a known IP address and port

    Hello
    Is it possible to write a VB application which would packetise say name and password into a data packet, which could then be sent over the net to a certain IP address and port number?

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: sending a packet of data to a known IP address and port

    You may try the WinSock Control I think ti can do what you are asking


    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: sending a packet of data to a known IP address and port

    use senddata and getdata of winsock control..
    don't forget to set remote ip & port open... OK ..

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: sending a packet of data to a known IP address and port

    can you point me to any tutorials/stickies which can help me

  5. #5
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255

    Re: sending a packet of data to a known IP address and port

    Your first post makes what you're saying you want to do sound VERY shady...

  6. #6
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: sending a packet of data to a known IP address and port

    If you want to set up a client/server then use the winsock control but you need an application on the remote PC is this what you are tryign to do?

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: sending a packet of data to a known IP address and port

    , no, it is not a shady thing that i wanted to do. i actually wanted to do this application which sat on clients, but the authorisation to run the application would be given on the server.

    so when you run the applicaton on the client, it would seek permission from the server before it could go to the next step

  8. #8
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: sending a packet of data to a known IP address and port

    Your going to have to explain your prolem more, i have no idea sorry

  9. #9
    Junior Member
    Join Date
    May 2005
    Location
    California
    Posts
    22

    Re: sending a packet of data to a known IP address and port

    That's not difficult to do, however, you'd probably want to use UDP rather TCP (TCP would be overkill if you just want to send a single "packet" of data). If you're running this on a local network, you wouldn't even need to know the specific IP address of the server; you could broadcast your datagram and have the server respond to any authentication requests. That's how a lot of programs which use floating network licenses work.
    Mike Stefanik
    sockettools.com

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