New topic: 

Get TCPSocket to connect to domain name instead of IP

<http://forums.realsoftware.com/viewtopic.php?t=46216>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        x11joex11          Post subject: Get TCPSocket to connect to 
domain name instead of IPPosted: Tue Dec 11, 2012 10:00 pm                      
   
Joined: Thu Oct 12, 2006 7:21 am
Posts: 409
Location: California                How do I get a TCPSocket to connect do a 
domain name instead of an IP address only?

I'm trying to connect to an FTP server and I'm getting error #49, which if my 
research was correct means it was unable to resolve the host name.

If it does only work with IP Address, how do I get the IP Address 
programmatically for a domain name?      
_________________
Joe Astrahan
CEO - iTechware Inc.
iTechware - Internet, Technology & Software
Google Adwords Campaign Management
"Rocketing you to the top!"
10900 Los Alamitos Blvd, Suite #210
Los Alamitos, CA, 90720
(949)354-4ADS  
                             Top                timhare          Post subject: 
Re: Get TCPSocket to connect to domain name instead of IPPosted: Tue Dec 11, 
2012 10:32 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11876
Location: Portland, OR  USA                TCPSocket uses your computers DNS to 
resolve the name.  What did you use for an address?

dim sock as new TCPSocket
sock.Address = "www.mydomain.com"
sock.Port = 21
sock.Connect   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to