I need to create a binary connection to a spesific IP and port.
I am using VB6.
Any help would be greatly appreciated.
Printable View
I need to create a binary connection to a spesific IP and port.
I am using VB6.
Any help would be greatly appreciated.
Specify the remote address and the remote port. Which control are you using?
I am not using any control at the moment.
I am just trying to create this connection by any means.
Can I use Inet?
Inet or Winsock - search the forum for code. There's plenty of it.
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.
If it has a number you can connect to it. If you don't know the port number you can't.
I know the IP and port.
I just don't know how to connect to it.
Lookup the Winsock control. That's an easy way to initiate a raw TCP or UDP connection to a remote host through VB6.
Show us what you do have coded for the connection so far, that way we might be able to help.
There are numerous examples of how to use Winsock right here on the forums. You should find something you can use pretty easily.