Is there any way to convert an IP address string to a hex string, (including dots), and then return the converted hex value!
"10.10.10.11" to hex(7):31,00,30,00,2e,00,31,00,30,00,2e,00,31,00,30,00,2e,00,31,00,00,00,00,00
Cheers!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Reading your question, I understand that you actually want to convert the IP address string to its unicode representation, from which you then want to generate a comma separated list of the underlying bytes (encoded in hex).
This will do the trick:
Output: