hostIP as variable.

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: hostIP as variable.

  1. #1
    Join Date
    Jun 2006

    hostIP as variable.

    Im trying to figure out how i can take my IP address, store it in a database, and then allow users to retrieve it into there client software as a variable. im assuming its something along the lines of.. ( in plain english)

    1. server form loads winsock1 obtains MY IP address ( how?)

    2. it then takes the IP address and updates a table on the sql server

    3. client wants to connect, the remotehost IP is then pulled from the sql database.

    4. client connects

    how would one go about finding the IP address and then how does it work with the mysql database.. can it be done as a string? kind of like text where ( example) is nothing more than a string. i hope im on the right path here.. thanks in advance for any help!!


  2. #2
    Join Date
    Jun 2006

    forgot to mention....

    when i try the winsock1.localip it comes back with my internal IP ( 192.168.x.x) as opposed to my actual internet IP.. is there a way to get the internet IP address?

Similar Threads

  1. How to retain session variable
    By NikhilSriv in forum Java
    Replies: 1
    Last Post: 06-14-2006, 05:24 AM
  2. Is there a way to 'turn off' variable hiding?
    By Thomas Eyde in forum .NET
    Replies: 5
    Last Post: 06-18-2002, 10:41 AM
  3. sql variable problem
    By Lymarie in forum Database
    Replies: 0
    Last Post: 04-02-2001, 10:16 AM
  4. @@FETCH_STATUS variable
    By Larry Hunter in forum Database
    Replies: 1
    Last Post: 03-18-2001, 10:31 PM
  5. Re: Passing an object name through a variable
    By mrfelis in forum VB Classic
    Replies: 9
    Last Post: 04-25-2000, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center