11-11-2001, 01:17 PM
I am trying to write a file sharing program that is basically used over a LAN. What i need to to is automacally get the ip address of people running the program. for example i turn on my program and in a list box it list the the ips of other LAN users that are running the program also. If anyone could give me some advice it would be apprecicated...
11-11-2001, 01:35 PM
You would need to have a list that was permanently online. To do this, you would need a program that was acessible from your programs, permanently online. Now you can either write your own and host it on the LAN, or place a database file on a server somewhere on the net.
Then as soon as someone loads your program, it connects to the online databse, adds itself to the list, receives the current list, then displays it. You can do this simply via Winsock. When the program unloads - it connects to the database again, and rempoves itself from the list.
Search the forum for more info on Winsock.
11-11-2001, 01:37 PM
What you need is a server that every user logs into and can let everyother
user know the names and IPs of all the other logged-in users. Without that
server, you have peer to peer situation that is 10 times harder to keep in