CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Will this work?

  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Will this work?

    I want to send bytes though the winsock and I need 2 computers...for one to send bytes for second to receive....sort of like trojan, well I want to know if I can use one computer and connect to my computer's IP as if it was remote computer......will this work? or there is no way to test network program on 1 computer....

    Thank You



  2. #2
    Join Date
    Jan 2000
    Location
    United Kingdom
    Posts
    4

    Probably not, but try this.

    I don't know how well winsock would handle it, but you can ping your own network card (don't think it works with modems) on tcp/ip 127.0.0.1
    This is used to make sure the card is actually functioning. I have no idea if you can send and receive over it.
    Try feeding that in as the client address, hopefully it won't crash the network protocols.

    Alternatively, get 2 Network cards and connect them via a hub / crossover cable. Bind TCP/IP to each and then assign different IPs through network neighborhod. This will actually work (probably) in Windows98, not sure about 95 and NT.

    I am merely an egg.

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

Featured