Forum Moderators: bakedjake

Message Too Old, No Replies

Binding a process to a specific IP

Cli Php

         

shrirch

3:59 pm on May 14, 2004 (gmt 0)

10+ Year Member



I have 6 IP addresses on my server and my TOS with a vendor restricts me to 1 SOAP transaction per second per IP. While they have never rejected a transaction, I do want to see if there is any way in which I can bind a command line process to use a specifc IP.

I know this can be done in C.. but is there a generic unix utility which allows you to wrap a program and bind it to an IP?

Sharper

12:50 pm on May 15, 2004 (gmt 0)

10+ Year Member



If you're using FreeBSD, you can run it in a jail tied to that IP.

For Linux, you may be able to do the same using user-mode-linux, but I'm not as familiar with that.

daisho

4:16 am on May 20, 2004 (gmt 0)

10+ Year Member



You don't have access to the source code that acctually binds?

shrirch

3:50 pm on May 25, 2004 (gmt 0)

10+ Year Member



Still researching.

There are some low level functions in PHP which might be able to do this.

( [hk2.php.net...] )