-3

Usually When you ping a website (e.g Google.com) it replies with a specific Ip My question is: Is there anyway where you can call a website and replies with an IP you have set manaually like 1.2.3.4

meaning if I ping google.com from my pc it will reply with 1.2.3.4

Mehdi
  • 21

1 Answers1

0

You'll have to set that in your Hosts file.

Windows

Run Notepad as Administrator, and open

C:\Windows\System32\Drivers\etc\hosts

Add your entry:

1.2.3.4 google.com

And save.

Linux

nano /etc/hosts

Mac OS X 10.6 - 10.1.8

sudo nano /private/etc/hosts

Add your entry, save and close the file, then

dscacheutil -flushcache
James Hyde
  • 118
  • 9