Page 1 of 1
Need help figuring out my zoneip
Posted: Tue Jun 25, 2013 5:33 pm
by msulli1355
Hello. I used Darkstar a long time ago. I've updated my files, but the IP address of the PC the server is running on has changed. It was 192.168.2.2. It's now 192.168.0.2. I calculated the zoneip should be 43208, but the old zoneip was 0033728704 (which someone on this forum gave me.) I can connect to dsconnect, but not to dsgame. Could somebody please write a scriptlet that checks the server machines IP address and spits out a zoneip? Or could someone implement it into the server code? For now, I just need help figuring out what my zoneip is. 192.168.0.2 would be (192) + (168*256) + (0^2) + (2^3) = zoneip, right? 192 + 43008 + 0 + 8 = 43208, but the old number had two zeroes at the beginning.
Re: Need help figuring out my zoneip
Posted: Tue Jun 25, 2013 5:47 pm
by kjLotus
Re: Need help figuring out my zoneip
Posted: Tue Jun 25, 2013 6:07 pm
by msulli1355
Thank you. I added a bookmark to the website to my Dark Star Bookmark group. It came up with 3232235522 for my IP address. I have no idea how it came up with that, but I'll try it.
That number does not work. What am I doing wrong?
mysql> select zoneip from zone_settings;
+------------+
| zoneip |
+------------+
| 3232235522 |
| 3232235522 |
| 3232235522 |
.
.
.
I've restarted all servers, and still it takes forever downloading data after I select my character...
Re: Need help figuring out my zoneip
Posted: Tue Jun 25, 2013 7:13 pm
by bluekirby0
The problem is that the ip address needs to be entered byte-swapped. i.e. if your ip is 127.0.0.1 then you enter it as 1.0.0.127 (last group to first group) in that calculator.
Re: Need help figuring out my zoneip
Posted: Tue Jun 25, 2013 7:34 pm
by msulli1355
I think it works now. TY for your help...