WINSOCK alternatives in Win 7 Profession 64 bit to create socket to request and read values

jbelow2

New Member
Joined
Mar 23, 2010
Messages
13
Hello All!!
I have an application which I am trying to connect via an IP address and port number. I have been trying to use WINSOCK control, but when I get to createobject I get an error "429:ACtive X component can't create object."

I have been working with Igor's sample from "'http://www.ostrosoft.com/oswinsck/oswinsck_vba.asp" example, but at the point of creating the object "Set wsTCP = CreateObject("OSWINSCK.Winsock")" the code fails with the error code 429.

I have the ostrosoft winsock component registered and active in the available references within vba.


What alternatives could I use for connecting to a device and sending a command and waiting for a response?

Basically I am trying to connect to the IP Address: 192.168.3.44 Port Number 10001.

Once connected I need to send a "read?" command and capture its response "12.0,45.0"

A telnet session executed from the command prompt works fine. I would just like to automate this a little better with a form front end to display the response.


Anyone have any insight whether the "winsock" control in Windows 7 Profession 64 bit can be made to work? Is there better tools available to accomplish a connection?

Thank you in advance..
John
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,863
Messages
6,121,978
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top