Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Converting a URL to an IP Address?

Converting a URL to an IP Address?
Thread Tools
selowitch
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Mar 18, 2005, 08:38 PM
 
I know the URL of my website's FTP server, which is like "ftp.myhost.extension", but I'd like to know what IP address corresponds to it. What's the easiest way to convert one to the other on a Macintosh?
     
f1000
Professional Poster
Join Date: Jan 2003
Status: Offline
Reply With Quote
Mar 18, 2005, 08:43 PM
 
Lookup using Network Utility (selecting the information to lookup as "Internet Address")?
     
selowitch  (op)
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Mar 18, 2005, 08:47 PM
 
Originally posted by f1000:
Lookup using Network Utility (selecting the information to lookup as "Internet Address")?
Aha. I knew it would be something like that. I assume you can do this through the Terminal as well, right?
     
f1000
Professional Poster
Join Date: Jan 2003
Status: Offline
Reply With Quote
Mar 18, 2005, 08:53 PM
 
Originally posted by selowitch:
Aha. I knew it would be something like that. I assume you can do this through the Terminal as well, right?
If you telnet or ftp into a web site, you'll usually (always?) get the IP address in response.
     
Chris O'Brien
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Mar 18, 2005, 08:57 PM
 
Originally posted by f1000:
If you telnet or ftp into a web site, you'll usually (always?) get the IP address in response.
Or just ping it.
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
selowitch  (op)
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Mar 18, 2005, 09:06 PM
 
Odd. I have used these methods to look up my server, dbx2.pointinspace.com -- but if I replace that URL with the number I got, 66.151.191.100, my FTP client cannot connect. Changing the setting for the server back to dbx2.pointinspace.com works perfectly, though. Weird. What am I missing?
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Mar 19, 2005, 12:22 AM
 
The old official way was to use 'nslookup' but that is being depriciated in favor of 'dig' but I don't like its output.
     
selowitch  (op)
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Mar 19, 2005, 12:41 AM
 
I went to the Terminal and typed: host dbx2.pointinspace.com and got the number 66.151.191.100 -- but that number didn't work with my FTP client even though the URL did. What's wrong?
     
Chris O'Brien
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Mar 19, 2005, 08:05 AM
 
If you type `ftp 66.151.191.100' n the terminal, it does indeed work. What client are you using?
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
selowitch  (op)
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Mar 19, 2005, 10:42 AM
 
Originally posted by Black Book:
If you type `ftp 66.151.191.100' n the terminal, it does indeed work. What client are you using?
You're right, that does work. Hmmmm.
I'm using Transmit 3.0.2 under Mac OS X 10.3.8.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:47 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,