Need help figuring out my zoneip

Post Reply
msulli1355
Posts: 74
Joined: Sun Jul 22, 2012 2:21 pm

Need help figuring out my zoneip

Post by msulli1355 » Tue Jun 25, 2013 5:33 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Need help figuring out my zoneip

Post by kjLotus » Tue Jun 25, 2013 5:47 pm


msulli1355
Posts: 74
Joined: Sun Jul 22, 2012 2:21 pm

Re: Need help figuring out my zoneip

Post by msulli1355 » Tue Jun 25, 2013 6:07 pm

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...

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Need help figuring out my zoneip

Post by bluekirby0 » Tue Jun 25, 2013 7:13 pm

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.

msulli1355
Posts: 74
Joined: Sun Jul 22, 2012 2:21 pm

Re: Need help figuring out my zoneip

Post by msulli1355 » Tue Jun 25, 2013 7:34 pm

I think it works now. TY for your help...

Post Reply