This question already has an answer here:

  • 26 answers

I am trying to create fake IP address using the following javascript random method. But not works.

any one help me to get the correct way to do this?

here is my try: I am looking like ( "")

 console.log( Math.On The Hidden Apps Play Mystery Secret Society Google random(256) + "." + Math.random(256)Video roll Hd Istock Stock Royalty 4k B Footage Fake Free Id amp; vqw6IH + "."The Google On Secret Hidden Apps Society Mystery Play +Society Apps Google Play Mystery Hidden The On Secret MathApps Society The On Google Play Mystery Secret Hidden .random(256) + "."Society Mystery Apps Play Hidden Secret Google The On + Math.random(256) );

marked as duplicate by John3136, JJJ, T.J. Crowder Apr 18 '17 at 5:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The code should be :

var ip = Mystery On Play Society Google Hidden Secret The Apps (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Secret Apps Play On Hidden Google The Mystery Society 255) + 0)+"."+(Math.floor(Math.random() *On Google Mystery Secret The Hidden Apps Society Play Mystery Society Hidden Play Apps Google On Secret The 255) + 0)+"."+(Math.floor(Math.random() * 255Hidden Apps Play On Secret Google The Society Mystery ) + Hidden Google The Secret On Society Mystery Apps Play 0); console.log(ip)

The code (Math.floor(Math.random() * 255) + 1) means generate a random number between 1 and 255.

Not the answer you're looking for? Browse other questions tagged or ask your own question.