Click here to Skip to main content
13,793,817 members
Rate this:
Please Sign up or sign in to vote.
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:
If My.Computer.Network.Ping("") Then
            MsgBox("Server pinged successfully.")
            MsgBox("Ping request timed out.")
        End If
Posted 20-Oct-17 13:19pm
Updated 20-Oct-17 21:02pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 ...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.181207.3 | Last Updated 21 Oct 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100