Link to home
Start Free TrialLog in
Avatar of Shabzt
ShabztFlag for India

asked on

Multiple ip server

What if I run my application server on say 5556 port and my machine has 2 ips (2 network interface card). On which ip the 5556 port will bind?

Platform needs some ip to connect to.

How different server reacts in the same situation?

Thanks  
Avatar of Lopo Pegado
Lopo Pegado

Hi,

In IIS you can force the IP wich is used for a WebAplication.


Open the IIS console, right click on the site  (ie Default web Site) of the aplication and choose properties.

On Web Site Tab you have Web site identification on top.

The second box (Ip address by default have (All Unassigned).

If you click on the drop box button you can see the ip's of the machine, just choose the one you want.


Hope it Helps


Best Regards

Botas
Avatar of Shabzt

ASKER

Hi,
Thanks for your mail

What about other App servers. Or if you develop your own server, how it will react in the same scenario
Hi,

For default, the servers respond to all netword cards they have.

If you wanna to force only to one IP, the best to do its use DNS and use the name to force an IP, If you dont have a DNS Server or the hosts file.

IE

Server001  - 3 Networks cards
IP1   192.168.7.5 (Administration)
IP2   192.168.1.4 (Aplication A on port 80)
IP3   192.168.3.2 (Aplication B on port 80)

DNS or Host Files of client

Server001 192.168.7.5
AplicationA 192.168.1.4
AplicationB 192.168.3.2



Avatar of Shabzt

ASKER

Hi,

1. So it means if I have one server application running on port 5556 and that machine has two ips, for example, IP1 and IP2, my client application can connect to any ip i.e. IP1:5556 or IP2:5556 by default.

2. Can I run 2 server applications on same port but on different ips (same machine) i.e. application1 on IP1:5556 and application2 on IP2:5556
ASKER CERTIFIED SOLUTION
Avatar of Lopo Pegado
Lopo Pegado

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial