Check If Client Port Is Open And Forwarded [C#]?
Jan 29, 2010
What is the best way to check if client has an open port, and if it's forwarded properly?The app works like this currently:Client creates a socket for incoming connections and wants to notify everyone about his open port. Client also tries to setup port forwarding using UPnP (but it's not always present and enabled).Client then sends his port to the "central" known server.Server should check if the port is open (forwarded properly) and return its status.If there is a forwarding problem, client will notify user.The goal is to have an the IP + port info saved on the server to be able to give it to other clients. I could try to open a Socket from server to client and see if it fails, but is there an easier (faster) way to do it?For example, this site does something like that: http://www.canyouseeme.org/
View 1 Replies
Similar Messages:
Feb 9, 2010
I am trying to set up a paypal IPN listener. Here is my code:
[Code]....
[Code]....
For testing purposes I have code to send an email at different spots. The only email that I get is the first one. None of the other email checks are being sent. I have checked with paypal and they said to make sure that port 443 is open for incoming and outgoing traffic. If that is the problem how would I go about making sure the port is open? Or could it be something else?
View 12 Replies
Jan 2, 2010
Is it possible to read data from serial port of client system using asp.net web site. Here is my scenario
I will be having computers connected in LAN and a web application which resides on server. Each client computer will be connected to a external machine using serial port and is ready for reading data, external machine measures equipment details and sends through serial port.Now I need to read the same data using my web page, is it possible?
Like when we do video chatting our web page reads data from web cam and sends the stream to web page. this way how can I read data from client machine to web page.
View 1 Replies
Jan 16, 2011
i can control a LPT port or COM port or any other hardware of server using ASP.Net with C#. I haven't found any clue in the internet.
I want to control a COM port Parallel port from web application.
View 2 Replies
Jan 28, 2010
How to determine whether the Adobe Acrobat Reader has been installed or not on the client PC?
View 7 Replies
Nov 2, 2010
is there any way to check whether the DB connection is exist or not from aspx client side?
View 6 Replies
Mar 25, 2011
whats the best client side spell check utility to use that would integrate well with asp.net/ c#?
View 1 Replies
Jan 6, 2010
I'm having some trouble trying to create a page for my web app. I'm not trying to write a simple download/upload page. Should also say that I'm not trying to write a complex one.What I need to do is in the PageLoad check if the user has installed one particular software and then show the right message to download and install OR run it from the user's actual installation. For this scenario I've tried to use different file upload controls to check if the file was on the client machine, but none of then can do this, since, for security reasons,I can't programmatically set the path and file to upload.
View 5 Replies
Jan 7, 2011
I have a c# website that allows a client to connect directly to a remote SQL Server database from their PC, bypassing the web server, by using a 3rd party ActiveX control. I was originally using the SQLOLEDB provider and it was working fine. The clients are in an internal network (using Windows machines and Internet Explorer) and the website is not intended for exposure to the general internet.
I had to upgrade from using the SQLOLEDB provider to the SQLNCLI10 provider to cater for the new datatypes in SQL Server 2008. It worked on my PC, but broke in production. What I didn't realise is that it worked because the SQLOLEDB provider is part of the Windows OS (MDAC/WDAC) so already exists on the client's PC. The SQLNCLI10 provider is included as part of SQL Server 2008 and has to be installed separately on the client machine (because most of them won't have SQL Server installed, but I do).
I can provide a link for them to download a standalone Microsoft SQL Server 2008 Native Client provider from, but how do I check if they already have it installed?
View 1 Replies
Oct 19, 2010
I want to check page validation on client side, like Page.Validate() but its server side method, is there any client side function which can work like Page.Validate() with javascript.
View 2 Replies
Feb 25, 2011
In my application I want to open a file that exists on a client machine. I created two applications: desktop and web application. When the user installs the desktop application there are some files which is copied to its installation path, and I want to open those files from my web application via javascript.
View 6 Replies
Feb 14, 2011
I have an HTML link on my ASP.NET page. When the user clicks the link, an Outlook window will open. However, it changes the URL on my page also to mailto:reddy@yahoo.com.
How to stop it?
<a href="#"
onclick="window.open('mailto:reddy@yahoo.com?Subject=upport','','200','200');"
style="color: White">Contact Support</a>
View 3 Replies
Jun 16, 2015
I am working on a ASP.NETÂ (using c#).
I need to have a functionality like if user click on one button it should open default mail client with subject and body without to address. I tried using Microsoft.Office.Interop.Outlook.Application namespace but it opens outlook and wont work if outlook is not installed on the client's computer.
View 1 Replies
May 3, 2010
I read the thread on this topic and tried using "Process.start(mypdf.pdf)" to open the PDF file. I was able to get "Process.Start()" to work perfectly within VS2008 on the built-in server but not IIS; when I am in the development environment it works great, but when I deploy the application and run it it does not work. What happens when I run outside of the development environment, I can export the PDF file to the directory on the IIS server, and the client can also delete the file from the IIS server, BUT, inbetween the export and the delete commands, I have the Process.start command so that the user can open the file and do whatever they need to do; print it, print partially or save it locally ect.
After it exports the file to the server when the exectue "Process.start" occurs, the screen just blinks and there is no error message? I tried many options using Process.StartInfo but no luck. I also tried to to use Process.Start() with a text file (.txt) and had the same result, so it doesn't look like an adobe acrobat problem. I do have acrobat running on the clients as well as the server. I don't think it is a security issue being the exporting and deleting work. Is this the wrong command to use? The web server is IIS7, I am using VS2008 VB.NET and it is a Web application. I need to demo this to the client in 4 days and I need to have this working.
View 4 Replies
Mar 10, 2010
I'm using 3 diff websiteA,B.C. Im logging in A and accessing B,then logging out it means B has to close;then the redirection is A.likewise C to B.
View 2 Replies
Jul 24, 2010
At the time of file download process, teh IE thorws a dialog box asking the user open / save or cancel. How to disable the open option, i want only save or cancel. This file is a zip file. i don't want a open option, is it possible?
View 1 Replies
Feb 28, 2011
How to create and open a docx in client side's Word from asp.net application? and if i want the user to customize the document at their localend, then how can i do this?
View 1 Replies
Oct 22, 2010
i am new to this, would like to ask how can i check which button user click when downloading file, either open, save or cancel ? I need to update to the Database after the user click the save/open button, if cancel, then do not do anythinghere is example of code:
void Page_Load(object sender, EventArgs e) {
View 9 Replies
Jul 1, 2010
I want to open an email client and attach a number of documents to the email, which will be done by opening an email client. I currently have the following code:
[Code]....
And then in my .cs file
[Code]....
How can i open an email client where i have noted in my above code?
View 1 Replies
May 24, 2010
I am working on ASP.NET3.5 platform. I have used a file upload control and a asp button to upload a file. Whenever i try to upload a file which contain special characterlike (file#&%.txt) it show crash and give the messeage "Server Error in 'myapplication' Application." A potentially dangerous Request.Files value was detected from the client (filename="...New Text &#.txt"). Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Files value was detected from the client (filename="...New Text &#.txt"). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. how can i prevent this crash using javascript at client side?
View 3 Replies
Jun 3, 2010
How to open Excell file if client machines does not excell installed? My code is writtenusing Microsoft.Office.Interop and Excel in code behind. I know how to export grid data using
Application type as xls etc, but the issue is the whole grid data with id columns also will be exported and i don't want to export id's. How i can acheive this?
View 1 Replies
Sep 23, 2010
I have many xml file in xmlfolder under the root director of my project. I need to protect all file to not let it open from the client browser.
My file have some credential information, and i need avoid to let it open in client browser.
View 2 Replies
Aug 8, 2010
I am using the following code to write the contents of a string (converted to a byte array) to the client in ASP.NET/C#
byte[] data = StrToByteArray(strData);
Response.ClearContent();
Response.AppendHeader("content-length", data.Length.ToString());
Response.ContentType = "text/plain";
Response.AppendHeader("content-Disposition", "attachment;filename=" + fileName);
Response.BinaryWrite(data);
Response.Flush();
fileName is the name of the file ending with the file extension (.pgn). However, the file is saved as a .txt file, ignoring the extension that I am giving it. Would this have to do with the Response.Contenttype = "text/plain"? How can I get the Open/Save dialog to display and save the correct (.pgn) filename?
Also, if filename is a string separated by dashes or spaces, when the Open/Save dialog comes up, the filename is not displayed in its entirety but it is truncated where the first dash (-) or space (or comma) is encountered. How can this be remedied?
View 1 Replies
May 21, 2010
I can specify a port number with SmtpClient object in ASP.NET, what I am wondering is, is that just the port .NET uses to send mail to the SMTP server? Or will that dictate what port for the SMTP server to use? Or is it that it MUST match the port configured for the SMTP server?
View 2 Replies
Feb 20, 2010
ASP.NET 2.0 and COM Port Communication
I have a managed DLL which communicates with the devices attached on COM/Serial ports. The desktop Winforms application sends requests on ports and receives/stores data in memory. In Winforms app I have added a reference to DLL and I am using the methods. This works well. Now, there is a situation where I need to show this data from serial/com port on a web-page. And also users should be able to send requests to the ports using this DLL. I have made a web app in ASP.NET (2.0). Added a reference to the DLL. I am able to use this DLL, the DLL communicates on the COM upon button click on web-page and also the response is shown on web page. However I am not happy with the approach and strongly feel that this is a bad approach. Also the development server crashes after 3 -4 requests. What is the best approach in this scenario. If I use a windows service then how would my ASP.net app will communicate with the Weindows service.Or can this be easily done using WCF. I have not used WCF any time nor any of .net remoting technique.
View 1 Replies