Test If User Comes From Local Network?

Jul 14, 2010

I want to use C#/ASP.net to find out whether the user browsing the website is on the same network so that certain links are only displayed while in the office (to those who have access to them).

Anyone accessing from within the office will be doing so by going to it's local IP address (i.e. 192.168.x.x) whereas external users will be browsing to the public domain name.

All I need is some way to differentiate between the two types of user.

View 2 Replies


Similar Messages:

Hyperlink To Local File - Local Drive Letter And Network?

Oct 1, 2010

There is a hyperlink to a local file...for instance....C:/text.txt. This is not possible, because ASP.net does not allow links to local files. But, links to files on network drives such as W:/test.txt are working ok. how does the browser know which drive letter is local,and which is networked? How does it know that C: is local or D: is local etc, and that W: is a network drive?

View 1 Replies

Get Local IPs From The Network?

Feb 2, 2010

I have Survey web applications and i need to install it in the local web server in my company

the problem is what correct code to get the real ip for the machines to prevent vote more than one for every employee

note: the company have domain controller and all user belong to Group Policy. I try many Code like

Request.Servervariables("REMOTE_ADDR")
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

no correct result give me 127.0.0.1 or the server IP

View 3 Replies

Testing Mobile On Local Network?

Aug 30, 2010

I do not want to do my development based on an emulator, so I want to be able to have my phone (Android), to connect to my local PC to make sure what I am developing comes out the way I want it to.

Issue #1 - I need to be able to connect to my network, not internet, I can't have my PC internet facing, this limits me from opening my PC to the internet.

Issue #2 - No WiFi allowed at my work, security issues.

Issue #3 - I can't publish this to a internet facing site, since the procedure to get it to one, take a few days each publish and will put my development to a crawl.

What I'm looking for, is a way to get my phone to connect to my local PC, maybe via USB/Bluetooth but have access to my local IIS.

View 3 Replies

Configuration :: How Open Website From Other Pc In The Local Network

Oct 19, 2010

How open asp.net website from other pc in the local network ?

View 3 Replies

Ability To Access WCF Service From Local Network ?

Feb 16, 2011

I'm new in the WCF and in the web developing ..

I wrote WCF service and i by creating new Web Sites - i added new WCF service that will host my WCF service.

In the 'Web location' i define the service to be HTTP and the URL to be "http://localhost/MyService"

Now i want to access thru some other machine ( in the same network ) to my machine and get using the Service method that my WCF service exposed - but i fail each time ( calling from the second machine "http://a.b.c.d/MyService/interfaceMethodName")

If i try to call the web service thru the same machine - i get the right response.

View 4 Replies

Web Forms :: Get MAC Address Of A Machine In Local LAN Network

Mar 26, 2016

How to get Client MAC address(Web). I used this it's only work in IE. But i want work all browser. How i can solve this?

This script is for IE only:

<script language="javascript" type="text/javascript">
    function showMacAddress() {
        var obj = new ActiveXObject("WbemScripting.SWbemLocator");
        var s = obj.ConnectServer(".");
        var properties = s.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
        var e = new Enumerator(properties);
        var output;
    
[CODE]...

View 1 Replies

Configuration :: Testing Multiple Users On Local Network?

Sep 23, 2010

I have VWD 2010 Express installed. While developing I would like my co-workers to test the application (the parts that are "finished"). When I click "View in browser" for some web form of my application or "Start debugging" the app is shown in my browser at:

http://localhost:3424/Default.aspx

My IP on local network is 192.168.1.14. How can my co-workers access this page?

Note: I do not have IIS instaled (just ASP.NET Development Server).

View 2 Replies

IIS Configuration :: Website Is Accessible On Local But Not On Other Machines On LAN Network

Mar 9, 2013

I have hosted my website in iis in windows xp.

When i entered the ip address in my system, it works fine but when i tried it in other machine, it is not working. It leaves me Connection Time Out Error.

View 1 Replies

Security :: Want To Organize Twenty-four-hour Local Network Monitoring?

Jun 16, 2010

I want to organize twenty-four-hour local network monitoring. Could you tell me about such program? The program has to ping hosts and save results in files on hard drive for viewing.

View 3 Replies

Web Forms :: Access Another Server Machine Local Network Area?

Feb 23, 2010

my projects image files hosts on a local server machine which name is A.

another server hosts my web projects on IIS which name is B.

I want to set my web projects's image file names like image1.ImageURL = "A\foldername\image.png";

but when the projects runs the image file url gets the image url adrress : [URl] I must access the image files which are another server machine on my local network area and I must get the ImageUrl properties from another server machine

View 2 Replies

Networking - Obtaining Client Computer Name On Local Network In Javascript Web Application?

Jan 27, 2011

I have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.

View 1 Replies

Web Forms :: Find Printer Under Local Network (Intranet) And Print Without Dialog

Jul 19, 2013

I want to Find the Printer under the Local Area network(intranet). 

After press print button, its give printout with out popup the print-window. is it posible in web allplication. if its posible means how can i approch.

View 1 Replies

Test Local Page On Fetch As Googlebot?

Aug 13, 2010

i have written a local page and need to test ithow can i do it with fetch google bot

View 2 Replies

Security :: VS2008 Development Server (local Host) & Hosted IIS7 Site Different Configuration - How To Test Application

Mar 19, 2010

How can I test an application that I am publishing to a remote provider's IIS7 hosted site, with the VS2008 development server that is built in with VS2008 on an XP Machine?

My membership/roles work perfectly up on the remote host. On ths hosted IIS7 site when I try to access a secure directory it redirects to login, and I am able to login, however when I launch (debug - F5) from VS2008, it will provide that folder/resource, no questions asked. Same build, config, etc... nothing has changed.

I am running XP, and local IIS version installed is 5.1.

My guess is what is happening is that the new format required in the web.config is configured properly for IIS7 deployment, which is why it works remotely, but when running locally through VS2008/XP it is running with an older version on IIS and does not recoginize the new tags.

View 3 Replies

User Identity Name Showing Windows User Instead Of Network Service?

Jun 28, 2011

In the IIS, it shows that the web app (i'm using) is using an application pool that uses NETWORK SERVICE account for identity. But when I debug/run my web app, User.Identity.Name shows that my windows user login instead. I checked my web.config file, and it does not have Impersonate enabled. In fact, I set it to false, and it still shows the same.

View 1 Replies

How To Configure Mail For Local Network And Send Mail ?

Mar 22, 2010

We at Our company having our own local network in which consists around 20 users. We do not have Internet connections. Now I've created an asp.net website to share the data among the different users.How to create unique mail ids for each user.

View 2 Replies

When The User Types In The Correct User Name And Password, It Redirects To A New Page Called Test.aspx?

Dec 10, 2010

im using asp.net for my webpage. im also using the login control too. i want it so when the user types in the correct user name and password, it redirects to a new page called test.aspx. i dont want to use login view.

View 2 Replies

User Network ID In Windows 7

Jul 28, 2011

I used code below to catch user's network login ID. It is working in XP but not working in Win 7. How to update it? (I use VS2008)

UserID = Page.User.Identity.Name.ToString

View 2 Replies

Anonymous User Cannot Print To A Network Printer?

May 17, 2010

I have an ASP.NET application where user is Anonymous when he connects to website. Also I have a printing server inside network. I want to let this user to print to the network printer.

In order to print I have to use File.Copy command. When I do this I get "Access denied". So I tried to impersonate the user with credentials of user that is inside domain and has the rights to print to that specific printer.

The problem is this user has to be Administrator, and I cannot let him be the Administrator. When this user is not Administrator then the printing is not working ("Access denied").

I tried to use Network Credentials but I don't know how to set credentials to command File.Copy. This command doesn't have any extensions or overloading for credentials.

View 2 Replies

Failed To Generate A User Instance Of SQL Server Due To Failure In Retrieving The User's Local Application Data Path

Jan 22, 2011

i have an asp.net project in vs2010 i have a db and table inside the app_data folder, i have created a deployment package and have imported the package into an iis server that is installed on my local mechine.
now i get this error message while trying to preform an insertion.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed
the connection string is:

Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|survey.mdf;Integrated Security=True;User Instance=True

when running it inside VS2010 it`s working fine.

View 1 Replies

Security - Accessing Network Folder With Network Service Account

Aug 17, 2010

My ASP.NET MVC 2 application runs under built-in local NETWORK SERVICE account. I want to set up access permissions for the folder which resides in another computer, but in the same domain. I located that folder right-clicked to open its properties form, clicked to Security tab and pressed Add button which displayed Add user form with correct domain name in the location field. I referred to the account with following syntax:

<domain name><server name>$

because I learned that NETWORK SERVICE account uses machine account when connected to other computers in the domain. However, the system couldn't find the account, so refuses to add the account. Without the domain name it adds a user, but that user seems to be local user, not web server's NETWORK SERVICE account. What am I doing wrong?

By the way, the above syntax worked when I created login for the sql server which is different computer from the web server.

View 2 Replies

Finding Web Application For Which Allow User To Select One Of All Attached Printers In Network?

Feb 11, 2011

I need one web application where User can select one of all attached Printers in Network.I am getting idea how to start.Is there any API or any ActiveX Control that I can use for that.

View 2 Replies

AJAX :: Sometime,request Will Not Be Responsed When User's Network Delay Is High?

Oct 31, 2010

Sometime,ajax request will not be responsed when user's network delay is high.So,if I want to stop the request and tell user "request time out" in the client ,What sould I do with asp.net ajax .

View 2 Replies

Test If The User Typed Email Format .NET (VB)?

Jun 19, 2010

I have a TextBox, and I want to force the user to type an email format in this field like (example@mail.com) ?I don't want to use FilteredTextBoxExtender or the RegularExpressionValidator.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved