In my opinion, BitComet should allow hostname input (passing it to WinSock’s resolver to obtain an IP address), rather than strictly IPv4-format IP addresses. Sometimes when manually adding a peer, they give you their hostname rather than their IP, which then has to manually resolved. These are computers, they should do the dirty work for us! B)
Note that the Add Peer functionality would have to be revamped a bit anyhow, if my IPv6 feature request were to be implemented. It would be great if multiple birds could be knocked out by the devs at once (i.e. lay the foundation for future IPv6 support with this request, even if it’s not all there yet).
I envision the logic proceeding as follows:
Input starts with:
dotted decimal notation (all it currently accepts) - IPv4
colon-delimited hex pairs, enclosed by square brackets - IPv6
anything else - pass to resolver
Since Add Peer isn’t a huge performance bottleneck, due to it not being used on a constant basis, I can’t foresee the additional processing causing inconvenience for users (indeed, for IPv4 addresses, any slowdown would likely be imperceptible and any other address type is currently unsupported, so slow is better than not at all). The only side-effect I can think of is if the resolver takes a while to respond for a hostname, but I’m sure BitComet handles this already for resolving other things (such as trackers). 
This is an issue as of BitComet 1.28.
they give you their hostname rather than their IP
Why would a perspective peer give you a host name instead of an IP address?
The reason IP addresses are converted to names is to make something that can be recognized, remembered, and even spoken… but I can’t think of why a peer would want to do this… I’m trying to picture a guy on a tv commercial saying "add me to your bittorrent clients, JohnSmith.org on port 45678 lol
Maybe there is cases where people do this, and you seem to be knowledgeable, so I’m willing to take your word for it, I just can’t think of a reason to do that.
For the great majority of people, IP addresses are temporarily leased from a provider, and are mutable. They are not ordinarily given a network name assignment along with the number, and there’s no provision for asserting one to DNS. That is, they’re simply not IN the DNS system at all.
Knowing that I’m at, or coming from, say, ATT.net won’t help to resolve my address, because I don’t have a name on their network – “kluelos.att.net” won’t authoritatively resolve to my actual IP address at any time.
Only in the rare circumstance where I have a static IP and a domain name to go with it, would this be of any assistance. That’s going to be a very small number of people. I can’t really see spending any coding time on it.
That was my thoughts exactly… although I’m sure people who run servers/websites/companies may run torrents on the same IP and may find it easier to use their domain name instead of an IP, but even so… why would they want to have people add them as peers manually???
The only time I add (or have people add me) is when I’m on a big public torrent and want a friend to benefit from my upload speed, and since the chance of him getting connected to me by random chance is low, I’ll send my IP:port number, but I can count the times I’ve done this on my fingers… so it would seem like a total waste of time to code this… but perhaps this member has some logic that escapes me… he does seem pretty techie… either that or he’s good at copy/paste 
ps. On another matter, is there a way to make a manually added peer have higher priority? so that if (for example), kluelos and I would add each other to our client, could we make sure that we unchoke these peers in favor of others? That would seem like a good option to add, since if your going to the trouble of adding a peer, you certainly don’t want him choked… or worse yet, have him blocked because you’ve reached your task or global limit on connections.
That already exists TUUS… if you right-click on the added peer in the Peer tab, you just check the “Friend Upload Slot” option. That will always grant him an upload slot (at least for the current session).
mohap, is there a reason you quoted the entire original post without adding any comments of your own?
Perhaps you’re unfamiliar with how a forum works?
If you don’t edit (fix) your post, we’ll consider it an error and delete it to keep the forum tidy.