Get The Host Name Of The Client Machine?
Nov 23, 2010
I am building an ASP.NET intranet application. I am trying to get the host name of the client machine. I have started off by using System.Net.Dns.GetHostName(); but this just seems to return the hostname of the server running the website through IIS. Am I using the wrong method or am I using this one incorrectly?
[Code]....
View 4 Replies
Similar Messages:
Nov 30, 2010
Am using ASP.Net 3.5 with C#. Am trying to send email using SMTP server on button click. Mostly email is sent suceessfully. But sometimes am getting web mail exception error saying "Host machine software has blocked the mail".My web application runs behind a firewall.
View 1 Replies
May 4, 2010
I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)
I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.
As an example, suppose I run my web application in visual studio on my host machine and its url is
http://localhost:62789/MyPage.aspx
Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?
EDIT:
I set up IIS to host the web project. After that, I just added the following line (xxx.xxx.xxx.xxx is my IP) to my hosts file and I was able to access the website from the virtual machine:
xxx.xxx.xxx.xxx MyWebsite.net
I also had to edit my firewall settings.
View 2 Replies
Feb 1, 2011
I have to host an asp.net that user can access that website something like http://111.11.11.11/myapp/homepage.aspx. ( my ip address will be 111.11.11.11). All I have local IIS installed. I want that if any user clicks on the link. He should be able to access that web application.
View 9 Replies
Apr 23, 2010
What could potentially stop an AJAX call from working on the host server, when it works fine on the local host? I tried returning an error from the AJAX call, but all I get is 'undefined'. I don't think the actual page method is being called since no information is added in my log (and I've explicitly added a call).
View 2 Replies
Mar 7, 2011
When calling Response.Cookie.Add(new HttpCookie("MyCookie", "objValue")); where does the cookie saved? on Client Machine or Server Machine?
EDIT:if saved in Client Machine, how can I read it from javascript then? I tried this kind of script.
function getCookie(c_name) {
var i, x, y, ARRcookies = document.cookie.split(";");
for (i = 0; i < ARRcookies.length; i++) {
[code].....
I cannot get the cookie that I saved from code behind. When I look into the document.cookie object, it is just an empty string.
Scenario:On Page_Init() on code behind. I create a cookie using Response.Cookie.Add(new HttpCookie("MyCookie", "cookieValue"));.
On Client side, I'm trying to read the cookie saved from code behind on page load using the snippet above, but it returns undefined
View 3 Replies
Jun 30, 2010
I'm looking into a ASP.Net project for a friend who has a client at the moment. I just want to make sure that I can log onto her client's machine where they host their site, I'm working from home and not on their domain.
If I can't log in using the account info they gave me, is it possible that they can limit FTP access from outside IPs? Just a question in case I have a problem then I can suggest a solution. "Hey friend, I tried to log in, but the service denied me probably because your client has to include from my outside IP. My IP address is ....." or something like that.
View 3 Replies
Mar 4, 2011
I want to run .exe files on client machine.
System.Diagnostics.Process.Start("C:Windowssystem32otepad.exe") i Use this codeing it work on my system but not work on server. and with the javascript it also give the error
[code]....
View 5 Replies
Jan 7, 2010
How to get MAC address of client machine in c# and vb.net
View 3 Replies
Apr 2, 2011
e are developing an ASP.Net application. The requirement is to install and run an app (say console app developed using .Net) on the client machine through out ASP.Net application. How can we install this app (and .Net Framework required to run the app) when the user access our web app
View 2 Replies
Jul 23, 2010
I have written a console application which will map a volume as disk to a client machine and then Initializes, formats and assigns a drive letter.
Now i want to achieve the same through a web site. This is going to be a Internal site.Right now i can do this by executing the exe with a pop up from the website to run.
But i want to do the same operation as if it is a simple button click on the website after the user fills in the requirements like size,drive letter. I dont want to have any security pop ups.
Is there a way that i can do disk operations with out having security pop ups on end user machines?
View 5 Replies
May 27, 2010
I have a Requirement Where I need to Generate the PDf Docuemnts and I need to Send it to the Printer.
All the Pdf Documents are dynamically generated and it will be saved in server Temporary Folder.Then all these PDF Document has to be sent to the Clients Network Printer.
View 11 Replies
Dec 15, 2010
I have a web site where I need to capture the IP address of the logged in user. Earlier my code used to work fine. But all of a sudden it is giving me only one IP address from whichever machine may be the user logging in. I have tried almost all possibilites :
Request.ServerVariables("REMOTE_ADDR")
Request.ServerVariables("HTTP_X_FORWARDED_FOR")
Request.UserHostAddress()
Still it is giving me the same IP address.
View 3 Replies
Dec 16, 2010
We need the a solution for our ASP.NET website. in which a user needs to activate his machine and next time if he visits the site then we need to check the machine is activated or not. if the machine is activated then we want to redirect the user on different page.
Is there any way by which we can get the client machine MAC address and store it our database?
I have found some solution in which this can be done but it works on on IE and some ActiveX setting needs to be done.We want this should work on atleast IE and FireFox.
View 3 Replies
Oct 25, 2010
I want print PDF file from the client machine. The PDF file exists on the server.
View 1 Replies
Dec 7, 2010
I am using c# and ASP.NET 2.0.
How to invoke exe, which is available in the client machine?
View 4 Replies
Feb 7, 2011
I'm working on a project that has a C# app (running 24/7 as a server) on the client's machine). This app needs to send a file as a byte stream via POST to a server I am currently hosting on my home desktop.
Can this file be received by a C# app running on my server, or does it have to be as ASP app/page?
Also, I know how to send a bytestream via POST, but how will I set my server side app to listen for this incoming data? I have never done something like this, so I'm looking for some pointers to get me started.
View 3 Replies
Feb 2, 2011
how can I get the private ip of client system from a website hosted on public ip in ASP.Net C#? while i am checking userhostname, it's showing the global IP of the Internet connectivity which is the same for all the machines in the network.
View 2 Replies
Feb 22, 2011
I want to use ActiveXControl to scan particular folder on client machine say C:HJReports
I have write simple activeXcontrol using user control in winform but I am not able to use this in aspx page using object tag possibly due to problem in classId property of object tag Here I want help on following aspects
1. How to use already made .net activeXcontrol in asp.net
2. How to make .net activexcontrol
View 1 Replies
Feb 5, 2010
Without using fileupload control, what is the way to store a file from client machine to web server.
FYI, a text box has the path the client machine file.
View 1 Replies
May 23, 2010
I have a simple doubt... I have a button on my asp.net page. On the click of that button I want to show
an image stored in "C:Windows" folder( on client machine ) in an image control.
View 5 Replies
Jan 20, 2010
how to download files from server on client machine
View 8 Replies
Feb 10, 2011
I can't connect to both 9i and 10g from asp.net,when i installed 9i client in a machine which already contain 10g xpress edition and no 10g client 9i client used to connect 9i db in another machine. Both 9i and 10g can be connected with TOAD. i got the following error msg from the asp.net application. System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
View 3 Replies
Mar 20, 2011
I have developed a small website to be hosted in my client's office (intranet). This is my first website. I don't know how to deploy it.!! We can run it by copying and pasting the whole project folder in their server. But if we do like that they can modify the code whenever they need.
View 2 Replies
Mar 5, 2011
how can i access client machine's specific file contained in a drive or folder.Suppose in Server side i have knowledge of full path of a file that is present in client side, like "D:ABCFolderxyzFile.doc", this is a file that i want to retrieve and store in server side .
View 8 Replies