imap php

i have 5 ips in my server. and i want to access my 5 accounts thru 5 different ips, how can i do that with php, it always listens thru primary ip, how can we make such that it acounts listens dfrom 5 different ips,  is that possible with perl or any other lanuagr plz let me know

pameiAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
OK, so you can create an httpd instance by IP by listening for each specifc IP (httpd.conf)

Listen ip-address:port

http://httpd.apache.org/docs/2.0/en/bind.html
0
 
leakim971PluritechnicianCommented:
all addresses are really on your server or it's WAN addresses provided by your provider?
0
 
pameiAuthor Commented:
All the ip-address space is assigned to my server.
0
 
Ariel GarciaJefe de SistemasCommented:
I have a cuestion first, how you have 5 IPs,

1.- Have 5 Lan Card's
2.- Have a lot of ip's on one lan card

Apache
answer 1.- add each IP's on httpd.conf file for apache
answer 2.- Your network are hibrid, add the ip's too on httpd.conf file and maybe need some test to verify if is working.

answer 3.- Install apache one for each card, and isolate the conections (other senario)

Maybe this help.


On httpd.conf file look for this line
   Listen 80    <--- this are for all ip's

Add the Secund, Third, etc IP's
   Listen 192.170.2.5:81
   Listen 200.134.2.5:82

Note you have chose a diferent Port for each IP card,

If you need have only one apache, then use a Router connect all networks and centralize and then use only one IP for the server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.