Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

question about ip conv

In the Emperor name
Loyal Member
Joined
Jun 25, 2011
Messages
1,605
Reaction score
238
hello people

i have a question, i know how to convert ip to integrer but always if port is 0, any idea how to calculate with any port value? (i know ipconv.exe can do the job, but i want to understand how it works)
 
In the Emperor name
Loyal Member
Joined
Jun 25, 2011
Messages
1,605
Reaction score
238
i mean, ip to launch client like 167786590, etc

ex. i understant how 10.0.0.4 is converted to 167772164 (using port 0)
but using port 14400. same ip is converted to 167786564

so.. how is add the port part to the ip conversion?

reading some posts, i think port is set at client source, anyone with source code can tell me if that is right?, if that is right, then how ip conversion works is easy, simply adds 14400 to 167772164. ex. 167772164 + 14400 = 167786564
 
Upvote 0
Back
Top