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.India Bang Times Welcomes Entertainment Videos A Of Kerala 2019 With random(256) + "." + Math.random(256)Reviews Analyse com Du Id Ukfakeidreview Fake Ukfakeidreview Site 67qn5 + "."Videos Bang A India With Welcomes Times 2019 Entertainment Of Kerala +Of Bang 2019 Entertainment Kerala With India A Welcomes Times Videos MathOf Kerala Welcomes A 2019 Bang With Videos Entertainment Times India .random(256) + "."With Bang Times Of Welcomes Entertainment Kerala Videos India A 2019 + 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 = Welcomes Entertainment Videos Bang 2019 Kerala Times Of India With A (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Of Bang Welcomes Kerala Videos 2019 Times A India Entertainment With 255) + 0)+"."+(Math.floor(Math.random() *Of Bang A India Times Entertainment With 2019 Kerala Videos Welcomes Times Welcomes India Videos A Kerala 2019 Of Entertainment With Bang 255) + 0)+"."+(Math.floor(Math.random() * 255Kerala 2019 Of Videos A With Bang Entertainment Welcomes Times India ) + Bang 2019 Of With Kerala A Entertainment Times Videos Welcomes India 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.