Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is it not possible to fake an IP address?

Tags:

tcp

ip

I know it's possible to change an IP address using a proxy, but I'm interested in why is it not possible to change it by sending changed data from a single computer?

Update:

Thanks for quick replies, but it's not clear, what would happen, should a stateless protocol be used, like HTTP. I'm not familiar with lower-level network communication, but it seems that theoretically it should be possible to faken IP address if a PC connects to the server and receives the reply immediately.

like image 274
Fluffy Avatar asked Mar 03 '11 12:03

Fluffy


People also ask

Is it possible to fake an IP address?

IP spoofing, or IP address spoofing, refers to the creation of Internet Protocol (IP) packets with a false source IP address to impersonate another computer system. IP spoofing allows cybercriminals to carry out malicious actions, often without detection.

Is it possible to use someone else IP address?

The only direct information someone can get with your IP address is your general geographic location, usually your city or postal code. If they have additional information about you, such as your birthdate or Social Security number, a hacker might be able to steal your identity or impersonate you online.

Does VPN use fake IP?

The short answer to our titular question is that yes, using VPN software does hide your IP address - substituting your real IP with a 'fake' IP instead (namely the IP of the VPN server). The longer answer follows, complete with in-depth explanations and slight caveats.


2 Answers

It is fully possible to send data with a fake sender IP. You'll have a hard time getting replies though, since the replies will be sent to the fake IP and never reach you. Additionally, if you send data with a "from" IP that a router doesn't expect to arrive from you, the router will often simply drop it, and sometimes inform the ISP that you're up to something that violates your TOS.

EDIT: In response to edited post.

Any protocol (such as HTTP) that is built on top of a connection-oriented protocol (TCP) will require a valid IP. The cases where fake IPs have been prevalent mostly involve Denial Of Service attacks, using UDP, ICMP or the initial SYN packet in a TCP handshake.

like image 73
Erik Avatar answered Sep 21 '22 18:09

Erik


You can use any IP address you want for sending, but replies will go to the IP address you used, so you cannot establish two-way communication this way.

like image 21
Simon Richter Avatar answered Sep 19 '22 18:09

Simon Richter