in reply to generate range of IP address

Can you post the code that you tried? Your question is a little fuzzy...