473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Website local/remote login

vb.net 1.1 web application

Hello all,

I am just making a website,, and what I'm trying to do is..

if a user trys to view the site remotely,, like in Japan or something
they will get sent to a certain page,, but if a user views the site on
the local network to send them to a differnt page to the remote user.

Anyone got any suggestions on how to do this?

I was thinking I could just get the IP address of the user and if it
begins with 192.168 send them somewhere accordingly. But I cannot find
a way to get the IP address of someone who uses the site.

Any help would be greatly apprecaited

Thanx in advance

Oct 6 '06 #1
2 1037

Request.Servervariables("REMOTE_ADDR")

or

Request.UserHostAddress()
regards

Michel Posseth [MCP]

"Bonzol" <Bo****@hotmail.comschreef in bericht
news:11**********************@i3g2000cwc.googlegro ups.com...
vb.net 1.1 web application

Hello all,

I am just making a website,, and what I'm trying to do is..

if a user trys to view the site remotely,, like in Japan or something
they will get sent to a certain page,, but if a user views the site on
the local network to send them to a differnt page to the remote user.

Anyone got any suggestions on how to do this?

I was thinking I could just get the IP address of the user and if it
begins with 192.168 send them somewhere accordingly. But I cannot find
a way to get the IP address of someone who uses the site.

Any help would be greatly apprecaited

Thanx in advance

Oct 6 '06 #2
"Bonzol" <Bo****@hotmail.comwrote in news:1160110393.461589.117110
@i3g2000cwc.googlegroups.com:
vb.net 1.1 web application

Hello all,

I am just making a website,, and what I'm trying to do is..

if a user trys to view the site remotely,, like in Japan or something
they will get sent to a certain page,, but if a user views the site on
the local network to send them to a differnt page to the remote user.

Anyone got any suggestions on how to do this?

I was thinking I could just get the IP address of the user and if it
begins with 192.168 send them somewhere accordingly. But I cannot find
a way to get the IP address of someone who uses the site.

Yes, the IP address will do... you can retrieve the client IP via the
HTTP Headers:

http://www.quepublishing.com/article...&seqNum=4&rl=1

REMOTE_ADDR will give you the client IP.

However, if there are firewalls, etc between you and the client, the IP
may not be 100% correct.

If you need more accurate detection (i.e. geolocation based) there are
products and components out there which can tell you roughly where an IP
address is located.

Oct 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Charlie363 | last post by:
Hi to all, I have a little asp.net website which works great on the local machine but I cannot seem to access it from a remote machine. It is not a connection problem because my remote machine...
2
by: brett | last post by:
On my local machine, I've created an ASP.NET website, which will go into a sub folder of a website on a remote web server. I did this on my local machine because at some point, this site will have...
2
by: Dabbler | last post by:
Is there a way I can manage a remote website (virtual shared hosting service) with WAT? When I run it from the VWD Express it opens my local sites but I'n not sure how to invoke it against a remote...
7
by: clintonG | last post by:
I'm puzzled and don't think this is possible but if an application that is running on websiteA generates a file can FTP be used from websiteA to transfer that file to websiteB which would be...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
3
by: Jay | last post by:
I created a website in Visual studio 2005. I did a build and I can browse it on my local box. http://localhost/gpweb/gpkey.aspx When I try to access it on a remote box, it doesn't work....
10
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS....
5
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a...
4
by: John Straumann | last post by:
Hello all: Most of my development for websites has been on test VPC images where VS is installed on the server image. I now have a setup where I have a test server joined to my domain, and a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.