?
Solved

Public/Private Network ?

Posted on 2003-03-07
5
Medium Priority
?
188 Views
Last Modified: 2010-03-19
How do I know if a person is accessing my web application from a public network (over internet) or is the person accessing it from the organisation's network? The IP address can not be restricted as it is a DHCP server.
0
Comment
Question by:rishi_raj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
Nigelp earned 80 total points
ID: 8087438
You should be able to look at the first bytes of the IP address to decide if the traffic is from the organisation's network otherwise the traffic will be from an external source.
0
 

Author Comment

by:rishi_raj
ID: 8100705
Although I accepted the answer, but I have a doubt. The first bytes of my server's IP address may also be used by any external server. There s no way to stop that. In such a case how do I identify the diff. in the network?
0
 

Expert Comment

by:Nigelp
ID: 8101760
If you could give me some more info such as some examples of your IP addresses and what type of web server it is you're developing applications on I may be able to give you a bit more help.
0
 

Author Comment

by:rishi_raj
ID: 8108866
I cannot share the exact IP address of the server as it is our client's server and I can not share details related to it. But I can tell you that the IP address string is of a standard formation xxx.x.x.xx

The exact scenario is something like this.

At the place of origin of the application (say HQ) there is the Main APP server (Weblogic) and the WEB Server (IIS).
Then there are some external outlets (independent of HQ) say P1, P2...Pn each having a LAN of their own. (It is practically not feasible to get the )

The intention of our application is to identify the location of the user accessing the application so that on the basis of the location a different home page can be shown.
eg: one home page for "public place" like a internet cafe
and another home page for HQ,P1, P2...etc.

I hope this info makes the things much clearer.



0
 

Expert Comment

by:Nigelp
ID: 8109640
You need to identify the network id of each lan (HQ,P1,P2)
Each lan should have a something like a Class C IP address where the first 24 bits of the IP address represent each individual network.

example
HQ = 206.169.61.???
P1 = 194.232.71.???
P2 = 174.55.27.???

Check the first 24 bits of the incoming address - if it matches any of the addresses on your list it's internal - otherwise it's external.

You'll probably need more network info from whoever manages the network to get the correct IP addresses and subnet masks as they may use more than 24 bits for the network ID.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

801 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