Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi.
i have created 2 application client/server i want press button in client , to show textbox that enable user to change there localhosts how can i start doing this ?
Posted
Updated 15-May-11 9:35am
v2
Comments
Dave Kreskowiak 15-May-11 15:34pm    
Nobody has any clue what you're talking about. It all fell apart when you said "to show textbox that enable user to change there localhosts". We have no idea what you're talking about. "change there localhosts"????
hamzah1 15-May-11 15:38pm    
Mrs dave when you connect server to client in client code you but the localhost for the client iwant when the server accept the request from client show text box make user in client change the local host to actule ip address
i hope it clear enough

1 solution

So what's wrong with putting up a textbox and getting the IP address? Depending on how your connection code is written, the client just needs the new IP address. So what's the problem?
 
Share this answer
 
Comments
hamzah1 15-May-11 22:46pm    
how can verfie that the user entered his ip address ??
Dave Kreskowiak 16-May-11 9:52am    
What do you mean? "Verify" can mean many different things.

If you're asking about seeing if something was really entered in a TextBox, you better learn VB.NET first.

If you're asking if the user entered a valid IP Address or Hostname, then you can Ping that address. See http://msdn.microsoft.com/en-us/library/he5sca5t(v=vs.90).aspx for more info.

If you want to verify that the IP is pointing to a server of the correct type, then you're going to have to do something to talk to that server as you normally would. What you do and how you do it are entirely up to you.

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