I want to write a application that can send files from server to client:
using windows Remote Desktop login the server from the client.
the application on the server could reversely connect to the client and send several files to the client using the same port as the Remote Desktop.
A application on the client can receive the files.
can't find any solution to do that kind thing. Any idea??
You can do this using Remote Desktop virtual channels. See this blog post for a sample virtual channel application.
Related
How to access local postgreSQL server running on computer, from mobile my phone?
I am making flutter app and use pgAdmin v6.10 as local server. I'm stuck for 2days trying different solutions to access server from my mobile browser but no progress.
I believe if i can access local server through mobile browser, also i can send data from my flutter app to database.
My pgAdmin runs on pc browser nicely but on phones browser doesn't open,
I've tried addresses 192.168.43.12:port(i.e computer's ip:port number) and 127.0.0.1:port
but they all didn't work, i get ERR_CONNECTION_REFUSED
Also i added this line on pg_hba.conf file
TYPE DATABASE USER ADDRESS METHOD
host flutterdb flutterdb_admin 192.168.43.12/24 scram-sha-256
And on my postgresql.conf file there is
listen_addresses = '*'
I'm following tutorial series from: https://youtu.be/WFe1kZhvUIw
I need your help please.
NOTE: I am using Windows laptop
i think that if u have dev environment, just you can try to open the connection..
you can try to configure for accept all connections
How to configure PostgreSQL to accept all incoming connections
I have C++ Backend process run on A server. Any process can connect to A server to get real time data feed.
I have web application (grails) run on B server.
Client Access via web browser to http://bserver/
I have a feature that web client can monitor realtime data of A server
which client not be able to access A server directly due to firewall policy, but Web application on B server will connect (tcp socket) to A server and pass data to web client.
Would you mind to advise the way that easy to implement.
The same setup works on Windows 7 / 64 Bit and Windows Server 2008 / 64 Bit:
the Datasnap server application is located on a mounted network drive
registered with tregsvr <drive>:\path\to\server.exe (as Administrator)
the GUID is shown in dcomcnfg
Socketserver and DCOM services are running
The client fails with the error message "Class not registered"
If I move the server app to a local directory, and repeat the tregsvr registration, the client can connect without problems.
What else could I check?
Is the client allowed to connect to the network drive? Since the client is in fact initiating the startup of the server, it should be able to read that network drive (which is exactly what you are seeing, since it works fine if the server is on a local drive)...
The server must not be in any shared network drive
You have to register the server type library on the client side, or DCOM on the client side won't be able to understand what class to instantiate and how to marshall its calls across the network. It is DCOM that will take care of asking the server to instantiate the server application.
In the DCOM connection, you have to tell where the server is (IP or host name).
DCOM must be configured correctly: use DCOMcnfg.exe to configure which user/groups can instantiate and call the server
If you're using the socket server it actually acts as a proxy. It's the socketserver making the DCOM calls on behalf of the client, but still calls are encapsulated inside the packets sent to the socket server.
Solved:
tregsvr the UNC path to the network location of the Datasnap Server (instead of a mounted network drive)
running Socketserver as SYSTEM account is fine, no additional privileges required
After logging off from the server, the Datasnap client still happily connects with the server
The other/old servers are running the Socketserver as an application with the necessary rights :P
I'm trying to send a mail via python code via local SMTP server (localhost, port 25) in Windows 7 Enterprise edition. I'm obviously getting the irritating
[Errno 10061] No connection could be made because the target machine actively refused it
message, because I don't have any SMTP server installed. Because of Microsofts' ambigious documentation I thought that I can use the Server manager tool to install the local SMTP service, only to discover that it doesn't work on Windows 7.
I've read here in other threads that Windows 7 does not include the SMTP service anymore, so it doesn't have a local SMTP server. All threads directed the questioners to other, 3rd party SMTP services. The question is: is there any other way of configuring a local SMTP server yet? Or is it still an open issue, and I have no choice but to use a 3rd party software?
This response is a little late, but might help the next person...
No, Windows 7 does not come with an SMTP server. Supposedly Remote Server Administration tools includes an SMTP server, but according to this link, it does not work.
Some options for sending email from a Windows 7 machine are:
For development purposes, I like smtp4dev https://github.com/rnwood/smtp4dev. It is open source and emulates a SMTP server. However instead of actually sending the email, it keeps in in an app on the system tray. Great for making sure you don't accidentally SPAM your users.
If you are planning to send emails out for real, I would advise using a SMTP server with a static IP address as most spam filters dislike dynamic addresses and will block the email.
I have not used it, but if you must send email from your local Windows machine and am not worried about SPAM filters, Free SMTP Server from www.softstack.com seems pretty popular.
[Edited link to new code repository]
Hi
I would like to retrieve documents from an ftp in my Windows phone 7 application (built with XNA in my case).
As far as I understand WP7 does not support ftp due to port and protocol(?) contraints.
Is there any way to get ftp support working?
I guess I will be able to implement it my self once socket support is added but I dopn't wan't to wait for that.
Cheers
/Jimmy
Since there are no supported socket capabilities in the initial release of WinPhone , you cannot directly FTP. You would have to create an "FTP Proxy" web service which your phone would call and have the service do the actual FTP and relay the files.
FTP and Sockets are not supported by the platform at the moment.
If you want to get remote files on to your phone you'll have to use HTTP(S).
You can do this either with the HttpWebRequest or WebClient classes depending on your specific needs.
Do you want to retrieve files fromn the phone, and over the cellular network? If so you need to confirm your operator allows ftp connections to your phone, which they probably do not.
If you're connecting over wifi, you've got more chance of this working.
Otherwise, you could implement a dropbox-style approach where the phone and your file-retrieving application both connect to a remote server
If this is for development purposes, you can get access to the phones storage and copy in files by using Microsoft's SmartDevices API.
I'm trying to do the same but so far the only way I've found around it is to create a web service to run on my own server which retrieves the FTP files on behalf on the phone.
Wish MS would hurry up and give us sockets - calling a web service is fine but I'm pretty sure it would be slower than directly getting the FTP files from the phone itself.