-2

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 ( "192.168.10.2")

 console.log( Math.Philippines Video Street Manila 937 644 939 Hd Stock Market random(256) + "." + Math.random(256)To On Location How Itools Fake Iphone thinkskysoft Gps fpCdwq + "."Video Philippines Street Hd Market Stock 939 644 937 Manila +937 Stock 644 Manila Hd Street 939 Philippines Market Video Math937 939 Hd Manila Video Market Street Philippines 644 Stock .random(256) + "."Manila 644 937 Market Street 939 Video Stock Philippines Hd + 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.

7

The code should be :

var ip = Street 939 Video Stock Market Hd 937 644 Philippines Manila (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Hd 937 Video Stock 644 Manila Philippines Market Street 939 255) + 0)+"."+(Math.floor(Math.random() *Market 939 644 937 Stock Manila Hd Street Philippines Video 939 Video Philippines 937 Hd Manila Stock Market Street 644 255) + 0)+"."+(Math.floor(Math.random() * 255937 Street Philippines Video 939 Hd Manila Market 644 Stock ) + Philippines Manila Hd 644 939 937 Video Stock Market Street 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.