Alek Posted August 7, 2007 Share Posted August 7, 2007 How can i get the ip to a domain name, like autoitscript.com IP is 64.111.104.70 [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Toady Posted August 7, 2007 Share Posted August 7, 2007 command line > ping autoitscript.com www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Alek Posted August 7, 2007 Author Share Posted August 7, 2007 command line > ping autoitscript.comhow can i get the data from the command line then [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 7, 2007 Developers Share Posted August 7, 2007 How can i get the ip to a domain name, like autoitscript.com IP is 64.111.104.70TCPNameToIP ( name ) SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Alek Posted August 7, 2007 Author Share Posted August 7, 2007 TCPNameToIP ( name )i think thats for the computers name and not a domain, it dident work for me [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 7, 2007 Developers Share Posted August 7, 2007 (edited) i think thats for the computers name and not a domain, it dident work for meYou did look at the helpfile and added TCPStartup() ? Edited August 7, 2007 by JdeB SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Alek Posted August 7, 2007 Author Share Posted August 7, 2007 (edited) You did look at the helpfile and added TCPStartup() ?the script works perfectly if i add the servers ip to the client, but i want to improve the script so that the client can connect to a domainEdit, nvm i got it to work, the bug was nuged deep inside the script Edited August 7, 2007 by Alek [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Toady Posted August 7, 2007 Share Posted August 7, 2007 You want the name as in Google.com right, not the IP? www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Toady Posted August 7, 2007 Share Posted August 7, 2007 ofc i did, the script works perfectly if i add the servers ip to the client, but i want to improve the script so that the client can connect to a domain This is not working for you? TCPStartup() MsgBox(0,"",TCPNameToIP("autoitscript.com")) TCPShutdown() www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
John117 Posted August 7, 2007 Share Posted August 7, 2007 (edited) perdy funnie try the help file for JdeB's answer Small adaptation . . . to get Ip CODE; Example 1 #include <inet.au3> Dim $sResult, $sIp TCPStartup() $sIp = TCPNameToIP("hiddensoft.com") If @error Then MsgBox(0, "_TCPIpToName()", "@error = " & @error & @LF & "@extended = " & @extended) Else MsgBox(0, "hiddensoft.com realy is:", $sIp) EndIf Small adaptation . . . to get Domain CODE; Example 2 #include <inet.au3> Dim $sResult, $sIp TCPStartup() $sIp = "64.111.104.70" $sResult = _TCPIpToName ($sIp) If @error Then MsgBox(0, "_TCPIpToName()", "@error = " & @error & @LF & "@extended = " & @extended) Else MsgBox(0, "hiddensoft.com realy is:", $sResult) EndIf Edit: I post so slow Edited August 7, 2007 by Hatcheda Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now