Results 1 to 4 of 4

Thread: Winsock Control and Ip address???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Dallas, TX
    Posts
    89
    Ok, when i want to use the winsock control, is it neccessary for the other computer that I'm trying to connect to have to have a valid Ip address? What I'm doing is making a chat program and my problem is that not all the computers on my Network has a valid Ip. We are running a Novell network not NT so I don't have a DHCP server. Some of the users do have a valid Ip so my program works on theirs. But the other users with an Ip of 127.0.0.1 the program doesn't work. Is this true or am I doing something wrong? Any comments or suggestions would be appreciated.

    Many Thanks...
    ande211
    VB6 SP3

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Well if you have more that one computer with the same ip then the program would get confused.
    Why not assign them an ip with the same mask. I think if the computers are on a network you can connect to then via Computer Name (\\Comp1\) But i'm not sure that WILL work.

    Gl,
    D!m
    Dim

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    This code will give you the IP of your machine:
    Code:
    Msgbox("Your IP is: " & Winsock1.LocalIP)

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Dallas, TX
    Posts
    89
    I've tried assigning different Ip's, but that doesn't work. The users that the program works on has a Static Ip that is provided by our ISP. On the ones without the Ip it doesn't seem to work. So does that mean that they truely need a valid Ip?
    ande211
    VB6 SP3

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