SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2006
    Location
    St. Petersburg, Fl
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Get ip address of machine on network from machine name

    I searched the help but only found info on getting a local ip. Anyone have a function where you can input the machine name and return the ip address?
    "Fox News gives you both sides of every story: the president's side, and the vice president's side."

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    Dublin, Ireland
    Posts
    237
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get ip address of machine on network from machine name

    You can write something to Ping the HostName, the echo will include the ip adress of the host.

  3. #3
    Member
    Join Date
    Feb 2006
    Location
    St. Petersburg, Fl
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get ip address of machine on network from machine name

    Sweet thanks

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">

    [-] STRING GetMachineIPAddress (STRING sMachineName)
    [ ] LIST OF STRING lsOut
    [ ] STRING sIP
    [ ]
    [ ] SYS_Execute (&quot;ping {sMachineName}&quot;, lsOut)
    [ ]
    [ ] sIP = GetField (GetField (lsOut[2], &quot; [&quot;, 2), &quot;]&quot;,1)
    [ ]
    [ ] return sIP</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    "Fox News gives you both sides of every story: the president's side, and the vice president's side."

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:49 PM.

Copyright BetaSoft Inc.