Skip to main content

[archive] C$Socket, ftp, ip address

  • December 5, 2007
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 05 December 2007]

I'm using sockets to do some ftp. One thing I noticed is it will not connect when you use a full name address (eg. ftp.acucorp.com), it needs an IP address (eg. 12.147.6.122).

Anyhow does anyone have a simple way to get the IP address from the full name address using the windows api, or any other method?

3 replies

[Migrated content. Thread originally posted on 05 December 2007]

I'm using sockets to do some ftp. One thing I noticed is it will not connect when you use a full name address (eg. ftp.acucorp.com), it needs an IP address (eg. 12.147.6.122).

Anyhow does anyone have a simple way to get the IP address from the full name address using the windows api, or any other method?
Would this: http://www.developerfusion.co.uk/show/1628/ do the trick?

[Migrated content. Thread originally posted on 05 December 2007]

I'm using sockets to do some ftp. One thing I noticed is it will not connect when you use a full name address (eg. ftp.acucorp.com), it needs an IP address (eg. 12.147.6.122).

Anyhow does anyone have a simple way to get the IP address from the full name address using the windows api, or any other method?
Would this: http://www.developerfusion.co.uk/show/1628/ do the trick?

[Migrated content. Thread originally posted on 05 December 2007]

I'm using sockets to do some ftp. One thing I noticed is it will not connect when you use a full name address (eg. ftp.acucorp.com), it needs an IP address (eg. 12.147.6.122).

Anyhow does anyone have a simple way to get the IP address from the full name address using the windows api, or any other method?
definately a start, thanks I appreciate the input. :)