1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

What kind of datatype is address

Discussion in 'Development' started by hillasen, Feb 6, 2020.

  1. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
    I was developing it and if found an error of this
    the datatype of address is
    IP Address and port. The first byte is the version (0x04), then come the address bytes and finally an unsigned short for the port.

    but I have failed using IP address to int32 if inent_aton
    what should I have to do!!

    It is saying that 192.168.25.20 is 3f 57 e6 eb in raknet
    P.S. I succeeded to do with port but I can't handle the IP address
    HELP PLEASE!!
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    hillasen likes this.
  3. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
  4. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    jasonwynn10 and hillasen like this.
  5. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
    Yeah so turn it back but I don't know what to use for ip address. Int32? Int64? String?
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    I haven't experiences with the program you are using. However what are you trying to do with that?
     
  7. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
    That is the tool that shows me the packet. You can google it Wire Shark. I want to make minecraft server with using python.
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Why do people like Python so much... Python is just almost as terrible as PHP.
     
    jasonwynn10 and HimbeersaftLP like this.
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    NOT 3f = c0 = 192
    NOT 57 = a8 = 168
    NOT e6 = 19 = 25
    NOT eb = 14 = 20

    No idea why they want to flip the bits, but that's it.
     
    jasonwynn10 and HimbeersaftLP like this.
  10. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
    How can be 3f is same with c0 or 192?
     
  11. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Bitwise NOT.
     
    jasonwynn10 and HimbeersaftLP like this.
  12. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    HimbeersaftLP likes this.
  13. hillasen

    hillasen Spider

    Messages:
    7
    GitHub:
    jun061227
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.