ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
BOT Universe Logins using IP address ( Some Problems it may cause ). (Sdk)
BOT Universe Logins using IP address ( Some Problems it may cause ). // Sdkandon m. colemanAug 8, 1999, 11:42pm
As stated in Roland's announcement that the Universe Server
(auth.activeworlds.com) will be changing IP addresses, this can present unforeseen problems . . . I discovered one in my BOT's login code. The problem with using IP addresses for logging into a universe as opposed to a DNS is this : If the IP address of the Universe Server changes, and the IP address for the Universe was hard set into the source code, people using your bot are all going to experience login problems when the IP address changes. My thoughts on working around this problem were originally to add a second entry box in my Universe Login settings for a DNS value, but then I got to thinking . . . This is what I came up with : Have the BOT Program query a Domain Name Server to find the corresponding DNS for the entered IP (if one exists). If this is done at the time that the person enters the IP address into the BOT settings and stored in the registry as an entry called "FAIL- PROOF" or whatever floats your boat, you'd then have a 2nd resource to fall back on . . . If an attempt to connect to the Universe Server : 127.0.0.1:0001 returns a callback other than 0, have it re-attempt a login using the previously stored value for 127.0.0.1. Let's call the DOMAIN NAME for 127.0.0.1 LocalHost (since that's essentially what it is =P). Now, let's say for some imaginary reason LocalHost has been moved from 127.0.0.1 to : 192.168.0.1 Had we not stored the Domain Name for 127.0.0.1, the BOT would never have known that the new server is running on 192.168.0.1:0001 Furthermore, the process could be improved even more to change the IP address in the settings from 127.0.0.1 to 192.168.0.1 automatically. This in turn fixes any problems associated with my concept to create a Network Efficient BOT. Since it doesn't call upon your local Domain Name Server every time you start up the BOT, you are saving resources on the DNS for more useful things .. . . Like updating itself =P -Andon Coleman tom russellAug 9, 1999, 9:35pm
andon m. colemanAug 10, 1999, 1:20am
I sense you don't understand the point of that . . .
[View Quote] walter knupeAug 10, 1999, 2:58pm
Same here, actually,. I did not get the point... never use I.P. addresses,
just use domain names and you're on the safe side.... but IF someone enters an I.P. address, please NEVER EVER change it automatically to something you think is what was ment.... an I.P. is a direct "order" to connect to a certain internet socket endpoint, which should not be "interpreted" in any way. That is what DNS was made for :) Walter aka Faber Andon M. Coleman <gizmo98 at earthlink.net> schrieb in im Newsbeitrag: 37af6d40.0 at homer... > I sense you don't understand the point of that . . . [View Quote] |