Click here to Skip to main content
15,896,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm making a application for send one file from other computer and it work well, the thing I want its when you start as a client you can select de IP of de server (like a Halo CE when you what to join in a game), because can be open in diferents computers and I don't what say de IP all the time

What I have tried:

I don't found anything I only found this:
VB
If My.Computer.Network.Ping("192.168.1.71") Then
            MsgBox("Server pinged successfully.")
        Else
            MsgBox("Ping request timed out.")
        End If
Posted
Updated 20-Oct-17 20:02pm

1 solution

Either store the "known IP's" in a configuration file, and read it into a ComboBox when you start the application, or you can pick up all the IP addresses on your LAN segment and load them into a ComboBox if you want to use only local ones.
For LAN IP's, see here: Retrieving IP and MAC addresses for a LAN[^] For obvious reasons, you cannot retreive all IP addresses on the internet ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900