Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I've been trying to read up on Networking in C or rather, networking in general. I already made a few Client/Server Tests but there's just one issue I can't seem to get around. It's not really an issue I guess but I am not really able to test my program and see if it even works because of it.
Whenever I run my program locally, that is, if the client connects to localhost, the program works fine, but if I were to run the client on a different computer connected to the same network, it does not. The reason is obviously the Windows Firewall blocking my program (which, frankly, I wouldn't blame since it IS doing its job which is to block applications that aren't certified). When I start my server application, I get the typical "Windows Security Alert" box as I should...
But the thing is, I don't actually own this computer and the group policy obviously prevents me from "allowing access" or modifying the firewall settings in any way. So I am unable to see if my program even works. Is it possible to make a program (preferably in C) without needing to allow it access through the firewall? Is there a way to make windows trust my program, do I need to certify it? If I were to publish a program like this, I would like my users to be able to run the program "right out of the box" without seeing a "scary" windows security alert box.
A lot of applications, I've noticed, are automatically trusted and accepted by the firewall right after downloading. Why is that?
I don't think my source code would be at all that useful, but in case you need it, I simply used Microsoft's simple Server/Client example.
server code
client code
A lot of applications, I've noticed, are automatically trusted and accepted by the firewall right after downloading. Why is that?
Many (most?) applications that require network access ask the user during install if the installer should create a firewall exception for the program. As installers run with elevated privileges they can do that.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
I'm running code in selenium to check for lower price on an item on Amazon. Once my target price hits, my code executes and once my account is logged, Amazon asks for log in again with a captcha. Now, I have the same code running on another PC and it executes fine without any captcha.
I've deleted all the User Data for Chrome, uninstalled Chrome with All data from the uninstaller, and clear any cookies or settings, but once I install Chrome again, I get the same captcha error.
Does any know where Amazon might be storing this information in order for me to clear it? Could is possible it's somewhere in regedit?
Reinstalled Chrome, Deleted all data from User Folder.
Provide your code, otherwise we can't help you.
Possible solutions:
If it's a Chrome WebDriver, you are in developer mode and any website can read it.
You are talking about YOUR information, however, Amazon may also have restricted your account for inappropriate use. These companies detect this type of conduct VERY easily.
Try to store cookies and avoid multiple logins.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
This question may be broad, my end goal is to be able to set up a website with some arbitrary database service. But right now I am trying to learn how that process works on my own computer and setup a development environment that can work for that goal. Web development seems hard to learn by myself as it involves so many parts, right now my understanding of the process is this:
I have client program C getting an input from the user, say username and password. Then it feeds that password to my server program S, who then communicates with a Database to retrieve user profile data D, and feeds that data back to the client program C.
I have done a lot of research, but the process still seems rather foggy to me. And my biggest doubt is in regards to the server part. It seems that there are two seperate functionality groups:
The server S1 which contains concise user data D mapped to its username and password
The Server S2 which deploys the client C onto a user computer, accepts user input, and queries S1 to retrieve, and process the user data D and feeds it back to the user.
Is my understanding correct with regards to the server(s)? Currently, I want to set up these servers on my local computer as a developing environment and connect to it as a client to test my program. I want to set up the server-side of my website (S1) with GoLang, and the database (S2) with Microsoft SQL Server Express, all in Ubuntu 20.10. Does that sound like a viable way to go about this?
Side note: at this point I realize this question is rather broad and messy, but that's just my experience trying to learn this long process by myself for the past few days. Even just a little bits and pieces of help would be deeply appreciated, thanks!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Delphi application that I cannot recompile.
In the process of moving the database to a new SQL Server version, I want to change the database password so it's no longer blank. The problem is that the application has the database credentials embedded in the .exe.
Is there any way that I can change the password?
Server name and database name are configurable.
If the connection string was saved in the TADOConnection component in design mode, Your best choice is to use Resource editor such as Resource Hacker.
The forms or data modules DFM are found in the RCData section. just change the connection string and use "Compile script".
This will save your changes back to the EXE file without the worry of corrupting the EXE.
I assume your EXE is not packed (PE packer) or digitally signed.
Below is a screenshot of part of a D7 .Exe of mine showing the relevant part of its Ado ConnectionString.
I used an antique file viewer (from the example apps accompanying an old TurboPower library) to take the screenshot. I just loaded the file into it, entered "persist" as the search string and skipped a couple of TPersistent instances to locate it.
Of course, you could use any old hex file-editor to do similar and change it, provided the .Exe isn't compressed or protected against tampering by checksums, etc.
You'll probably need to experiment a bit, & compare with another app which has a non-blank password so that you can come up with some new credentials that'll fit into the space available in the .Exe's disk image.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have developed wpf application, in which I have reminder functionality.
Case 1: Current Scenario
Currently I have place my application in startup folder in setup. and application starts whenever my computer starts. But now I have added login functionality so now my client need to login whenever computer starts which is annoying.
According to my functionality, After login into system reminder starts in background.
Case 2: Required
Now what I required is that my application starts in background without login into system, Reminder functionality works as if right now working.
Any help will be appreciated...
Starting a program without a user requires it written as a service, or started from one.
There are ways to start an exe file from a service.
Developing a service is basically the same as any other application; but without the GUI. Debugging a service is tedious so you should move the parts you want to execute when running as a service into a DLL. Then you should have an exe to load and execute the methods of the DLL.
This way you have an easy way to debug the functionality of the service; and can have as few times debugging-when-running-as-a-service as possible.
There are certain caveats when starting and stopping a service, mainly because the old service wasn't stopped and uninstalled as you supposed.
Tip: Autorun helps you survey the 4 or more ways to automatically start an application.
How to let a service show a GUI then? I haven't written one myself but found two valid links here and here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Does anybody know a good, free remote desktop solution to be used within another application, namely, the application I'm developing?
My application displays a list of computers currently available on the local network. I want the user to be able to select one of them, and establish a remote desktop connection to it.
Windows Desktop Connection isn't working for me, since it logs off the user currently working with that particular PC. I need something like LogMeIn Free, regarding its direct control of the Mouse and Keyboard, but only working on local network and and not requiring an internet connection, just like Windows Remote Desktop Connection; and of course capable of being invoked through another application.
Thanks all.
EDIT:
I realized there is no need to actually embed the remote desktop software within my application, a simple remote desktop .exe accepting arguments through command-line would be much better. I need something to be fed the name or IP of the remote PC, the Windows account's username and password, and simply connect to the remote PC displaying a single window.
How about that?
Any reason not to use one of the various implementations of VNC? There are implementations available under various licenses so you should be able to find one to suit your needs. You could tunnel it over a VPN of some sort if you require more security.
VNC does not have the side effect of logging off any existing users. However, it does require a client to be installed - as would any solution other than Windows Remote Desktop (which requires only correct permissions).
(As a side note I just discovered there is an open source VNC client written in C# - what language is your project written in?)
Also, Wikipedia has a comprehensive if slightly confusing comparison of remote access software
There is an open source .NET application called Terminals that seems to work in a very similar fashion to what you are describing. It supports RDP and VNC - it might provide a good starting point for your application?
What about FogCreek CoPilot?
Here's a product called SupportSmith SDK that supports what you're looking for. It's a set of ActiveX and .NET components that allow you to easily add remote support to your applications:
SupportSmith SDK