Home > Winsock Error > Winsock Error 40006

Winsock Error 40006

Does anyone know what this means and how i should correct my code? The problem that I have is as follows I ran the program on my machine and I did not have any problems, but when I tried to run it on a But for some reason it does not occur any one have any idea as to why this happens. All rights reserved. http://itechnologysolutionsllc.com/winsock-error/winsock-error-code-40006.php

PS. All rights reserved. Suggested Solutions Title # Comments Views Activity Excel 2010 Macro to Format Number to Remove the .0 at the End 4 36 105d How to add contact name to VBA code As of May 1, an ISP/EDU email is NO longer required to access the Classifieds.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10315945.html?query=download+from+ftp&topics=93#2648444 Utilizing Inet, as opposed to Winsock, would probably be the way to go, right? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Similar Threads - Runtime error 40006 Excel 2016 Error "1004" turtle03, Sep 27, 2016, in forum: Software Development Replies: 1 Views: 180 Rollin_Again Oct 7, 2016 Error process crucial died Lizzylove, While writing that article I realized that no o… Visual Basic Classic Spell check a VBA or VB6 ActiveX textbox Article by: Martin If you have ever used Microsoft Word then Could it be because of a firewall?

  • Run-time error '40006' : Wrong protocol or connection state for the requested transaction or request.
  • Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are
  • LOL.
  • The time now is 06:39 PM.
  • Does this happen when you install it on another machine? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 I would be
  • I don't know a lot about firewalls, but have you tried running on two computers inside the firewall - i.e.
  • Why does this happen?
  • You need to call the Connect method, then wait until the Winsock.State changes to sckConnected, or until the Winsock_Connect() event fires.

Powered by vBulletin Version 3.8.9Copyright ©2000 - 2016, vBulletin Solutions, Inc. --> Discussions Best Of... another thing that stuffed me around was the Tabindex Property So I ended up making the connect button's TabIndex 0 Thanks for all your help! Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily. Code: Private Sub Form_Load() Win.RemotePort = 4999 Win.RemoteHost = [My IP Adress] End Sub Private Sub Command1_Click() SendData End Sub Private Sub SendData() Data$ = "hello" On Error GoTo Err: Win.Close

This way you can run both progams in the development / debug environment and identify where they're getting a problem. Stay logged in Sign up now! Unless you are using a UDP protocol, in which case both computers have to bind the connection. https://www.experts-exchange.com/questions/26412420/VB6-Telnet-Winsock-Run-Time-Error-'40006'.html Reply With Quote Jan 9th, 2002,04:59 AM #3 Eyes.Only View Profile View Forum Posts Visit Homepage Hyperactive Member Join Date Oct 2001 Location Minnesota Posts 344 yea veryjohnny is right.

Log in or Sign up Tech Support Guy Home Forums > Software & Hardware > Software Development > Computer problem? The time now is 06:39 PM. Button A - Winsock1.SendData "admin" & vbCrLf Button B - Winsock1.SendData "tx power" & vbCrLf Button C - Winsock1.SendData "help" & vbCrLf and so on So I need it to connect, were you LISTENING or CONNECTING ?

How can I fix this? Using automation, an Access applic… MS Access Outlook Visual Basic Classic Advertise Here 767 members asked questions and received personalized solutions in the past 7 days. Please help! 0 Question by:souldigital Facebook Twitter LinkedIn Google LVL 17 Best Solution byZhaolai Now I see why you want to have all the code in one sub... I would lose my integrity.

Are you usng UDP? __________________ Chuck Norris ordered a Big Mac at Burger King, and got one. this contact form TCP or UDP? 0 LVL 9 Overall: Level 9 Visual Basic Classic 7 Programming Languages-Other 1 Message Active today Expert Comment by:Naveen Swamy2005-09-27 http://www.vbip.com/forum/topic.asp?id=5646 http://www.xtremevbtalk.com/archive/index.php/t-231766.html 0 LVL 17 Overall: You sure do know your stuff! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-10-02 Hi, JohnLucio, You might want to consider But are you saying the the activex exe must be installed in the same path as C:\CamColada\UpdateWrapper?

All you need to do in the client is change the remote host to have your computer's IP address. I so how do i make it ask for the users permission to grant access for the required port? Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? http://itechnologysolutionsllc.com/winsock-error/winsock-error-40006-wrong-protocol.php I can literally click connect (Button 1) then send a command (Button 2) with no delay and it works fine. 0 LVL 17 Overall: Level 17 Visual Basic Classic 7

Now compile the activeX.exe STEP 2. You need to remove the reference to the activex.exe in your test project, and then click File,Save Project as.. I am wondering if you tried to change anything around in the code.

etc..."?

The Connect event will fire automatically once the connection is complete. check the winsock state befure u try to connect 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 'I dug up an User Name Remember Me? thanx for the reply!

Okay. One tip I'll give you is to make your Winsock control a control array by setting it's Index = 0. Are you using VB6, or .NET? Check This Out The program works fine when I test it on my local machine but when I try to connect to a remote machine I end up with a run time error 40006.

This is a only guess - I am to just starting with winsock. If this is your first visit, be sure to check out the FAQ by clicking the link above. Password Home Register Calendar Today's Posts FAQ Free Publications Search Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Winsock "Run Time Error 40006" Thread Tools Can't I just use it as : [code]: With Winsock1(intNext): .Accept(requestID): .SendData("Hello from server"): End With: [/Code]Technically yes, it's one of those odd VB-isms.

In other words, my working folders are like this: C:\CamColada\UpdateWrapper --------- contains the activex exe C:\CamColada\UpdaterNew --------- the other stuff Then it installs to wherever. Many thanks in advance, John 0 Question by:John Account Facebook Twitter LinkedIn Google LVL 29 Best Solution bynffvrxqgrcfqvvc 'Alright give this a shot. Discussions Cyber Deals Vendor Discussion Forum Feedback Mod Hotline « Previous Thread | Next Thread » Forum Software Programming Tips and Tricks Visual Basic 6 Winsock - Run-time Error Posting Permissions About SP3--I don't think there's a SP3 out for Windows XP.

I don't need to call regsvr32 or anything like that, do I? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 Whats Does it download the file? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 You can try : camcolada/updates/Camcolada.exe 0 Message You're a great guy. Home Bookstore/E-Books P2P Programmer Forums Wrox Blogs Connect with Wrox Code Resources International IT Certifications Navigation Register Now View Active Topics View Archives View Unanswered Topics Wrox Programmer Forums

Suggested Solutions Title # Comments Views Activity Python multiple IF statements 4 62 67d Access 2016 VB code 9 74 61d wordsFront challenge 8 49 63d word0 challenge 3 35 28d that it is blocked by a firewall. No, create an account now. Join and Comment By clicking you are agreeing to Experts Exchange's Terms of Use.

Could it be because of a firewall? JP Please remember to rate all postings. Is it possible that a).

Follow us