Ad-hoc networks are by definition created on demand, without any infrastructure. On the other hand, they are often considered as an extension of the range of Internet access points, providing multihop wireless access to them. This paper tries to examine the situation where there exist several Internet access points in a single ad-hoc network. We present a Common Gateway Architecture which allows to use multiple access points and send traffic using the closest one.