Solved

internet sharing

Posted on 2003-10-21
7
178 Views
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 ?
 
0
Comment
Question by:kkkerem
7 Comments
 

Expert Comment

by:Konishiva
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

peace
alex
 
0
 

Author Comment

by:kkkerem
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.
0
 

Author Comment

by:kkkerem
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.

0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Expert Comment

by:Konishiva
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
:)

0
 
LVL 8

Expert Comment

by:gmayo
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.
0
 
LVL 6

Accepted Solution

by:
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 overbyte.delphicenter.com.
0
 
LVL 2

Expert Comment

by:LSORRELLS
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 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