I am having a problem about running a COM dll remotely on windows PCs.
I have a COM dll registered in all the client stations (windows) of my network and a .NET application hosted on a server in my network.
There is a POST request, which will receive the client ip as a parameter and the application will execute a remote call to the dll installed on the pc of the ip passed in the request.
I already used PHP with XAMPP, I could verify that it works locally, although XAMPP reboots a few times (I still do not know the real reason). one solution would be to install locally on each client a network xampp server with a php application receiving requests and running the dll locally, but would be impractical in view of the amount of computers available on the network.
Still with PHP, I saw that it would be possible to remotely call this faq from the php documentation, but to no avail. I'm starting .NET with C # because I believe being native (windows) will be better/easier to get results, but I have not yet found a plausible solution to run the dll remotely.
As a result, I will have the opening of the COM dll program already registered in the client pc (ip passed in the POST request).
Has anyone gone through this or do you have any idea how to run a dll remotely with .net, java, php or other technology?
Related
Iam using a open source code of Peers Java SIP Softphone downloaded from http://peers.sourceforge.net/.
I want to run this application on linux operating system but when iam placing a outgoing call from this application the call established late after creating a connection receiver voice coming late only in linux os.
And when i run this application on windows so the application response proper but for windows i have to use jdk32 bit
I basically need to create a test server, something that I can use locally to perform tasks for my application.
So my android app is basically a search engine, however the search queries will be made on the server and the results then fetched from the server on the mobile device as JSON objects.
Is there any way to replicate this functionality locally? I would just like to set up a server, include the Spring framework, the Google Custom Search API and develop it all in Java, then ship it to a live server directly when it's finished. (Most presumably a free tier Amazon AWS server, either EC2 or Lambda, not sure what the difference is).
Not quite sure where or how to get started so any help is appreciated, thank you!
p.s. I may try dabbling in some machine learning at a later date, but I don't know if this will affect anything, this will most likely be after I've got a live server up and running.
EDIT: Sorry, so how would I fetch data from a local server from my mobile device? Do I need special software? Do I need to configure a local server? How can my mobile device fetch data from a second project when its being run on the first?
My app will fetch data from a server, so how can I create a dummy server, for it to fetch data from? Will I need to create a fully functioning online server, or can this just be done through creating a local server of some sort and then simply plugging my android device in and running the code? I have absolutely no idea how to test it without putting it online.
You can run a local installation of Tomcat server on your own machine.
Access the server by visiting "http://localhost:8080/" (or) http://127.0.0.1:8080". You can basically listening to your own local machine / host's 8080 port. Sometimes, it could be port 80 instead of 8080.
Please explore on how to host a Spring or Java application on a local server.
A good starting point would be to learn J2EE or Enterprise Java. You can configure Databases from your local installation.
If you opt for PHP as your language on server side, there is a pre-defined package called WAMP (for Windows), LAMP (for Linux), MAMP (for MAC) and XAMPP.
The above package are nothing but a package which contains a Server, Database and a Server side language usually PHP, if needed Python or Perl.
Please explain in which step you are getting issues so that anyone can help you exactly.
open an exe which is on remote machine and not on my local machine which has hub and node using java selenium,I do not know if that's possible or not.I am looking for a slution.
you can use psexec to do it.
Download from here:
https://technet.microsoft.com/en-us/sysinternals/pxexec.aspx
I would suggest that on the machine where you want to launch your exe you will run some Webserver running some web application that also could be written on java or any other language. That web App should expose an API (REST API is one of the popular options) that woulsd receive request and upon that request will launch your exe. Now on your remote machine your java app (or any other app or just a brouser) will need to send a regular HTTP request to your webserver, and your web app will do the launch
I want to connect my android application to an applet which is running on my pc on Google chrome on Wi-fi.. where my phone works as a wi-fi hotspot and pc as the connected device. I want the connection to work uniquely as I want commands to be passed from my application to the specific applet, on the execution of which my applet does specific tasks. Please tell me the APIs which I can look in both Java and Android or the technology I have to use to make it work..
You need to use any program, such as wamp server, to make your computer to be a localserver. It will install PHP 5, MySQL and Apache. In other hand, you will also need a little bit of knowledge in Php language to create you own web services.
Another thing you need to be aware is that to handle you connection between server and device (and by this I mean which IP you are going to use) you will have a little headache; but first things first..break your problem in little parts thus will be easier to solve them.
I recommend this tutorial.
I think the simple way to connect these two softwares is using UDP.
It is fast, it is easy to program but it is generally unreliable according to TCP. But it is already local network. I dont think that is a case you need to take care in your local wifi network.
So take a look at this tutorial http://tutorials.jenkov.com/java-networking/udp-datagram-sockets.html
There are other ways like https://www.alljoyn.org/. It has more functinality but more complicated.
You must install Server on your PC(Apache httpd or apache tomcat or other based on your interest). A server listens to request from clients. When your mobile is connected to your pc(doesn't matter wire or wireless), you can make a request to an url(say, localhost:8080/welcome) from your app.
Create an applet and connect it with your web application(in the server) using java.net.URL and java.net.URLConnection.
On performing some operation on the client, call the url of the server application and forward the response to the applet.
I'm developing a simple server-client app. Server application is hosted on a VPS. I have a problem with it: it behaves weirdly... When I test it on my PC it works fine, but when I launch it on VPS it (program) hangs up when a client app try to connect (the protocol is TCP). I can't even kill it with "killall -vs TERM java" command, so I need to reboot a whole VPS in order to restart it. Client and server apps are both written on Java. The VPS OS is Ubuntu. Can anyone give me a piece of advice of that matter please?
Actually, the problem was in the System.out.println("some_text") commands. My server didn't want to work without this commands in certain places. Why - I don't know yet. I'll do some researches conducted with that behaviour. But anyway, that's a subject for another question.