Results 1 to 10 of 10

Thread: Binary connection to spesific IP and Port?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    51

    Question Binary connection to spesific IP and Port?

    I need to create a binary connection to a spesific IP and port.
    I am using VB6.

    Any help would be greatly appreciated.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Binary connection to spesific IP and Port?

    Specify the remote address and the remote port. Which control are you using?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    51

    Re: Binary connection to spesific IP and Port?

    I am not using any control at the moment.
    I am just trying to create this connection by any means.
    Can I use Inet?

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Binary connection to spesific IP and Port?

    Inet or Winsock - search the forum for code. There's plenty of it.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    51

    Re: Binary connection to spesific IP and Port?

    I know how the Inet and Winsock controls work, but I cant get it to connect to the IP and Port I need. The Port is not a ftp or http or any other recognised port.

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Binary connection to spesific IP and Port?

    If it has a number you can connect to it. If you don't know the port number you can't.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  7. #7

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    51

    Re: Binary connection to spesific IP and Port?

    I know the IP and port.
    I just don't know how to connect to it.

  8. #8
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Binary connection to spesific IP and Port?

    Lookup the Winsock control. That's an easy way to initiate a raw TCP or UDP connection to a remote host through VB6.
    Chris

  9. #9
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Binary connection to spesific IP and Port?

    Show us what you do have coded for the connection so far, that way we might be able to help.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Binary connection to spesific IP and Port?

    There are numerous examples of how to use Winsock right here on the forums. You should find something you can use pretty easily.

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