Results 1 to 7 of 7

Thread: Detecting IP Address

  1. #1
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332

    Detecting IP Address

    Is there any code i can type in order to find out the IP address of my PC?

  2. #2
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 02
    Location
    Nottingham
    Posts
    2,176
    Windows 2000 - XP as well i think!!!!

    in command prompt type

    IpConfig



    Windows 98 / 95

    in start/run type

    WinIpCfg

    Now Select Your Adapter
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  3. #3
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 01
    Location
    UK
    Posts
    645
    Theres a environment variable you use return in ASP.

    http://www.devasp.com/samples/Server....asp?TestID=65

    This a list of them all. They work like this...

    Code:
    varname = request.servervariables("VarName")
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    webmaster@leemccormick.com

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  4. #4
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332
    i mean the code! not the command line syntax!

  5. #5
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332
    asp? hehe, wat about in VB code? for normal coding purposes, i just want to inform the user about his/her own IP address without them having to type in the command prompt...

  6. #6
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 02
    Location
    Nottingham
    Posts
    2,176
    In VB add the Microsoft Winsock Control and a label to a form and then in you form load type

    label1.caption = Winsock1.localip



    Does That Help???
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  7. #7
    Junior Member LikeToLearn's Avatar
    Join Date
    Jan 03
    Location
    United Kingdom
    Posts
    24
    Hi that can be done threw an api and by calling the command prompt ipconfig , ive done it before but im a newbie and cannot remember the code , Try pm'ing MidgetsBro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •