internet sharing

Posted on 2003-10-21
Last Modified: 2010-04-05
i want to share the internet to the customers in a hotel with wireless. when a user tries to open a web page, he should go to a page stored in the server, asking the customer to pay. if payment is done, the user will be able to surf. my only problem is how to show the same page to the user for all web adresses ?
i think i have to build an application like a proxy server.

is there a component to do this in delphi ?
how can i do this ?
Question by:kkkerem

Expert Comment

ID: 9595220
the server program could only add the ip to the router routing table for the period of time relative to the $$. So you wouldn't need a proxy server just a little server easy to implement. A client application (system tray) could make the login and credit card number retrievement or a web page accessed on the server like you said would also do it but in my opinion the client application could be easier to implement and it would make it easier for everyclient to connect to the system.  

When you say the problem is how to show the same page to the user for all web adresses. I don't really understand what you mean. It will surely be the same page because its the same adress of the page :). If you have a webserver on your server, you only have to make a page and access it by intranet to the ip adress of the server.
If you wan't every user to load this page at startup of IE, you just have to put this URL in the loading page options. Once the client visa is accepted you could just redirect this page to an internet search engine like google.

anyway :) i don't know if i awnsered your question but this was my view of the problem and a solution for this view hehe


Author Comment

ID: 9595306
i meant that the user will always see the payment page for any url. and i don't want to use a client application. only a server application to show the user the payment page. after the payment user will be able to surf any page.

Author Comment

ID: 9595364
i have a server connected to internet with a dsl modem, and i'm able to share internet with a wirlesss access point now.

for example : i'm the hotel customer and i've a notebook with built in wireless. when i try to open ANY web page, i see the page asking me "how many days do you want to connect to the internet ?".
then maybe i choose 2 days. For 2 days i won't see this page again and i'll be able to surf in the internet. and the price for the internet will be added to my room account.

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 9595389
You could always use an integrated toolbar inside IE :)
or just make a frame that will always stay on screen with your page in it and user will be able to browse other page in another frame.

toolbar would be nice


Expert Comment

ID: 9597057
You could set up the clients so they use a proxy server. Then you can either write your own proxy server (which obviously sits on the server) or use some components to do the job for you. When a client tries to connect, you'll get a ClientConnect type of message followed by ClientRead messages. Interpret the data, find out the client IP address, then either send back your payment page or go fetch the requested page and send that back instead. You can do it with the bog standard TServerSocket component, you can probably do it with Indy, and there are bound to be other useful programs or proxy servers out there.

Geoff M.

Accepted Solution

swift99 earned 125 total points
ID: 9597380
What you are looking for is a type of proxy server.  Check out the user made pages from

Expert Comment

ID: 9601898
What you actually need is a gateway Intranet/Internet system:

A user is automatically connected to the Hotel intranet via wireless or hardwire when they connect.  But their ip addresses is not allowed to see the outside nor are incoming datastreams able to go to the address.  But they can go to a Hotel customer Home page where they can look at menu's, reserver rooms , maybe order etc...  They also have a form where they can request access to the web.  Their DHCP leased IP address can be dynamically set to expire on the based upon the time they pay for.  Then they can use that IP all the while at the hotel and from any place in the hotel.

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question