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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.