Help with dns ip.

01/16/2009 04:04 playboy94#1
Ok, well for some reason when I use my dyndns ip it just closes out the client.

joeroket.dyndns.org is my ip.

I'm using PowerSource, AppServ Open Project - 2.6.0 for Windows and Client 5017 with CIDLoader.


If any one knows what the problem is please tell me.
01/16/2009 04:14 tao4229#2
I don't think inet_addr is compatible with DNS ips.(Correct me if im wrong)

As far as I know, the client reads the IP from server.dat and then just straightly converts it to ulong from inet_addr.

Edit:: I tried inet_addr on your DNS ip, and unless your IP is 255.255.255.255(I'm assuming thats some sort of error), it isn't compatible.
01/16/2009 07:27 playboy94#3
Quote:
Originally Posted by tao4229 View Post
I don't think inet_addr is compatible with DNS ips.(Correct me if im wrong)

As far as I know, the client reads the IP from server.dat and then just straightly converts it to ulong from inet_addr.

Edit:: I tried inet_addr on your DNS ip, and unless your IP is 255.255.255.255(I'm assuming thats some sort of error), it isn't compatible.
Hmm, is there a way to make it some thing different then a DNS IP?
01/16/2009 08:05 andyd123#4
255.255.255.255 is a subnet, look it up on wikipedia if you wanna know what they are.

The ip you are looking for would be the one listed on whatsmyip.org, change your dyndns to be set to that ip and you should be alright.
01/16/2009 12:09 unknownone#5
lol. inet_addr() converts a string, such as "127.0.0.1" into an IP, which is an integer. 0x7F000001

What you have isn't an IP, it's a domain name. To get the IP for that domain, you need to call getaddrinfo() (or gethostbyname()).