Working of computer having 2 IP Addresses

Spectra7

Reputable
Sep 3, 2014
3
0
4,520
Hello!

I want to know what will happen when a computer having two IP Addresses. Like for example if a friend sends an email to me, then the request will come to which IP out of two IP's, either to 1st IP or to 2nd IP??

I am getting confused.
 
Solution
If you mean the one you get on CMD's ipconfig when connected onto a router in comparison with the external ip then i have some explanation to do.
Each internet user haves an isp that provides him the internet service and an IP for it.. The ip is unique no one else in the internet has the same ip so when someone needs to connect to it it just types it in.
Now when using routers, a set of clients use that router... The router uses a system called NAT to give each user a different ip address in this form factor
192.168.1.XXX replacing XXX with the number of pc you are actually logged into in order of 0 to 255.
Thats an internal or LAN ip.. The external is the one that a friend gets when they need to lets say connect to your game server...

masterdam17

Distinguished
Mar 1, 2013
222
0
18,710
If you mean the one you get on CMD's ipconfig when connected onto a router in comparison with the external ip then i have some explanation to do.
Each internet user haves an isp that provides him the internet service and an IP for it.. The ip is unique no one else in the internet has the same ip so when someone needs to connect to it it just types it in.
Now when using routers, a set of clients use that router... The router uses a system called NAT to give each user a different ip address in this form factor
192.168.1.XXX replacing XXX with the number of pc you are actually logged into in order of 0 to 255.
Thats an internal or LAN ip.. The external is the one that a friend gets when they need to lets say connect to your game server..
Now what if more than one pc is running a server? How does it know which pc to access??
Thats when port forwarding comes into place.. You know internet communicates through ports. So when a port is forwarded it means whenever an external user connects to that port on your external IP the request is redirected to one and only one internal ip.
Lets say we create a counter strike server with port 24015 and we port forward the port 24015 to internal ip 192.168.1.101
So each time a user connects to the server the request redirects to the 192.168.1.101 machine and so connection is established!!

When we talk about emails though no one needs to know the ip of the other person.. Just the email address and the @xxxx.com thats the host.
A host is some company that handles the messaging over the internet .
 
Solution

masterdam17

Distinguished
Mar 1, 2013
222
0
18,710
On the other hand if you mean 2 ip addresses due to having 2 internet adapters ... then you just have 2 connections as 2 clients to the router.. its basically the same as having 2 pcs connected except its basically the same one