|
-
Feb 22nd, 2007, 06:14 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Find a server
I know I just have a mental block, but how would a client find the IP of a server on the lan given the port number the server is listening on? I'm writing both parts, client and server, so nothing is out of my reach, but I just can't think of how to ask the lan who hears me on port XX (the port number can be anything). VB6 would be easiest, since the rest of the code is in VB6. I'm currently trying to use the Winsock control, but I'll use whatever works.
I can ping the server if I know the IP, but I want to find the IP at runtime.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|