Results 1 to 7 of 7

Thread: Winsock : Any ideas ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Question

    I have a Client/Server application that communicates using the winsock control to communicate. However I have a requirement to run the system locally ie. Client & Server on the same machine. This works perfectly on networked/internet enabled PC's but if the machine does not have an active Modem or Network card I get errors like:
    Error Code 10050 - Network Subsystem Failed
    Error Code 10047 - Address Family not Supported

    These I think are caused because TCP/IP isn't installed or the process is not active.
    Does anyone know if Sockets can work locally with no external connections ? Or can TCP/IP be set to look back on itself?

    Thanks,

    Zax

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    I have used a client-server Winsock app on a single machine, but one of the machines I used had an internal modem, while the other had a network card.

    Could this be of any help?
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    I assume you used the address 127.0.0.1

    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    I tried 127.0.0.1 and localhost but no luck.

  5. #5
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Is TCP/IP installed?
    Can you Ping 127.0.0.1

    if so try to bind to a port on your computer and see if that causes an error (happened to me once)
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    The trouble is there is no device (modem/network card) so TCP/IP isn't started.
    I can install the TCP/IP protocol using a dummy device but it doesn't function and I get :

    System Error &H8007001F ....
    A device attached to the system is not functioning.

    Do I need some sort of device to get TCP/IP running ?
    Do I need a device to use the winsock control ?

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I think if you would install the "Loopback Adapter" like when you just have a modem it would solve your problems. And you definately need the TCP/IP protocol installed.

    Hope that helps,
    Josh

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