[RESOLVED] Which Connection?
Hi...
I'm working on a program in VB6 that is using winsock. The program connects my computer to a device via a WIFI AdHoc connection. This all works fine. The problem is...if you are NOT connected to this correct AdHoc network the program crashes. How can I tell, using VB6, where I am currently connected?
My "device" IP is hard-coded at 192.168.10.100, so I have RemoteHost set to 192.168.10.100, RemotePort needs to be 10002, and LocalPort = 0.
I guess what I'm looking for is the SSID that I'm currently connected to.
Ideas?
Re: [RESOLVED] Which Connection?
AA9GG, this is what you needed. You just needed some error correction.
However try this. Port = 1234 Address 192.168.10.11
sub connect()
on error goto handleit
winsock.connect address,port
do
Doevents
loop until winsock.state=7 'connected
Handlit:
if err.number<>0 then
msgbox err.description
winsock.close
exit sub
73, KC0GQT