w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Error unable to connect to remote server when upload file to remote server
Using the FTP protocol requires a dedicated FTP server software running on the remote machine. FTP cannot access network drives without it. If you just want to access files on your network, start with this SO question: Copying files to a mapped drive while user is not logged in (scheduled task) For security reasons, I strongly recommend a few steps before: a) Do not open root shares like C$. b) Create specific shares on your "remote" server, where you grant access only to users for that specific purpose. Further reading on FTP: http://en.wikipedia.org/wiki/File_Transfer_Protocol

Categories : Vb.Net

SMTP client returning "unable to connect to remote server" - Amazon SES server
There were three issues at hand: 1: The email address it was being sent from was not verified with Amazon, and neither was the recipient (verification of recipient only needed in sandbox mode) 2: The out port I was using, 587, is blocked by my company, which seems to be common practice 3: Using async can only be done when you specify the page uses async in the aspx "header"

Categories : Amazon

creating pdf on server gives error : Unable to connect to the remote server
Ignoring iTextSharp for a moment, try this following code on your production server, obviously replacing the URL with your problem URL. using(var w = new System.Net.WebClient()){ w.DownloadData(@"https://siteurl.com/pdf/11111111.png"); } If this gives you an exception then your server is having a problem talking to the host specified. Sometimes, NAT/Firewall rules have problems using external resolution for internal resources. You might need to update local DNS or add an entry to a local hosts file to resolve this. If the above doesn't give you an exception let us know and we can troubleshoot further.

Categories : Dotnet

RMI cannot connect to remote server
This may not solve your problem, but I've had similar issues with JPPF (via Java RMI) on Linux. The solution was to ensure that the ephemeral port range on the Client-side machine covered only ports that were allowable by the Client-side's local firewall. E.g., if your firewall allows ports 48000 to 64000 to be connected to by an external machine, ensure that your ephemeral port range also falls within 48000 to 64000. Give that a try and let us know what happens.

Categories : Java

Can't connect to remote server using XMPPFramework
The problem was that the server required secure connections, and somehow I wasn't able to do that using XMPPFramework. I had my advisor at the university set the server settings to optional secure connections and now it works.

Categories : IOS

PDO cannot connect remote mysql server
$conn = new PDO('mysql:hostname=192.168.1.4;dbname=DB_TEST;port=3306','username','password'); should be $conn = new PDO('mysql:host=192.168.1.4;dbname=DB_TEST;port=3306','username','password'); hostname is invalid for dsn and so PDO is ignoring host and using default, which is localhost

Categories : PHP

Unable to connect to remote server
You need to set the credentials for Gmail var client = new SmtpClient("smtp.gmail.com", 587) { Credentials = new NetworkCredential("myusername@gmail.com", "mypwd"), EnableSsl = true }; client.Send("myusername@gmail.com", "myusername@gmail.com", "test", "testbody");

Categories : C#

Running script on a remote server in bash working on 1 server, not on the other
It's just a guess but i would try this filename=hostnames > export.log while read -r -a line do hostname=${line//"} echo $hostname":" >> export.log ssh -t -t $hostname "bash -s" < script.sh >> export.log & done < "$filename" exit Just to make sure you don t get stuck on one server.

Categories : Bash

Can't connect to mysql remote server using mysqldump
You have to open specific port because of security reason. Try a telnet on mysql remote port and see if it is open. Is this server inside your network? Because the ip you try to reach is an internal one. You have to look for the external IP to if this server is not in your internal network. Use this command to test the port: telnet 192.168.1.90 3306 EDIT: Open a specific port On GNU/Linux server Have a look at this link http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html. Step 7 explain how to open the port. On windows server Someone post something similar on mysql website. Have look at this link http://forums.mysql.com/read.php?11,156915,157606#msg-157606

Categories : Mysql

How to connect to remote server with paramiko without a password?
ssh.connect() takes a keyword argument pkey which you can use to specify your private file. #get IP and username for remote access IP = input("Enter host_server IP: ").split() username = input("Enter username: ").split() #create a file on host_server for file file_a = open(date+"file.txt", "a") #ignore the date variable file = str(date+"file.txt") import paramiko import os privatekeyfile = os.path.expanduser('~/.ssh/id_rsa') mykey = paramiko.RSAKey.from_private_key_file(privatekeyfile) ssh.connect(IP[0], username = user[0], pkey = mykey)

Categories : Python

SQL Server Express - Connect from remote machine
If i remember correctly SQL Server disables remote connections by default. Please check whether remote connections are enabled and enable them if not: RMB on Server in Management Studio Object Explorer -> Properties -> Connections -> Allow remote connections...

Categories : SQL

Connect iPhone app to remote database server
You can create a REST Api for your PHP/mySQL. Something like this https://github.com/gilbitron/Arrest-MySQL Then on the iOS side of things, you can use something like AFNetworking, to make requests to your server. https://github.com/AFNetworking/AFNetworking

Categories : Mysql

Can't connect to remote mysql server from rails
You can't use bash variables within config/database.yml like that. Rails will treat $HOST as the string "$HOST", which is what you see happening here Mysql2::Error: Access denied for user 'root'@'$HOST' (using password: YES) Instead, you can use ENV development: &defaults adapter: mysql2 encoding: utf8mb4 collation: utf8mb4_unicode_ci pool: 5 host: ENV['HOST'] port: ENV['PORT'] database: ENV['DATABASE'] username: root password: ENV['PASSWORD'] reconnect: true Related: http://railsapps.github.io/rails-environment-variables.html

Categories : Mysql

How to connect to Remote Mysql server that requires SSH?
If port 3306 is closed, you won't be able to connect from a remote host. PHPmyadmin works because it is running on the same machine as the mysql server (I assume) so it is not connecting from a remote host. You need to either open port 3306 and configure mysql to listen to port 3306, or you mention that you have ssh, which opens up another option. If you aren't able to open 3306 to the general public, you could create an ssh tunnel to the server that forwards 3306 on the mysql server to some port on your local machine (like 3307), then configure C# to connect to that local port. string mycon = "server=localhost;port=3307;uid=user;pwd=pwd;database=mydb;Convert Zero Datetime=True"; Here's an example of how to forward a port with putty. http://www.cs.uu.nl/technical/services/ssh/putty/put

Categories : C#

connect and fetch remote MySQL server from Mac
There may be a firewall or other network security device in place that prevents you from being able to connect from your Mac. Also, it is possible that the MySQL server is not configured to allow inbound network connections. You might ask your hosting provider if they filter access to the MySQL port (default is 3306), or if your host is pre-configured with a firewall, and you might check your MySQL configuration file to ensure it is listening for inbound connections.

Categories : Mysql

Can't connect to remote server using MySQL Workbench on mac
Does the database allow access to the user test from the IP you are making the call to? In the users table you specify a host from which this user can access the database. Often this may default to localhost or 127.0.0.1

Categories : Mysql

Unable to connect to the remote SMTP server
I think your gmail account is secured with mobile sms facility. If you access your gmail account from other macine than a sms will recieve from gmail for varification. Please off this functionality and try again.

Categories : C#

What is the best way to connect to a remote database server that can only be accessed from a different ec2 instance?
You want to do something like this - where ec2-dbserver is your database server (inside EC2), and ec2-host is the host that you can ssh2. You should then be able to point pgadmin-III to localhost:5432 ssh -L 5432:ec2-dbserver:5432 user@ec2-host

Categories : Database

unable to connect to remote database located on server
Have you verified that you can connect to your database server from the machine you are running this code on? It looks like there is a network problem. A good idea as a first step to diagnosing MySQL connection problems is to always try connecting from the command line to rule out networking or credentials problems mysql -uuser -p -h49.**.***.115 databasename where "user" is the username "databasename" is the database and "49.**.***.115" is the ip of the database server.

Categories : Java

SharePoint object model: connect to remote server?
SharePoint object model can't connect to remote server. To Connect to remote Server, you can use Client Object Model (available on sharepoint 2010 or sharepoint 2013) or webservices. If you are using sharepoint 2007. you can only using webservice to do data migration.

Categories : C#

How can I connect to a remote ipv6 mysql server using connector/C++
You should be able to place the IPv6 address in brackets, for instance: con = driver->connect("tcp://[::1]:3306", "root", "123"); Be sure that your MySQL server is actually listening on IPv6. MySQL versions before 5.5 did not support IPv6.

Categories : Mysql

unable to connect to remote server c# while sending mail
can you try shortening your code to something like the following var smptClient = new SmtpClient("smtp.gmail.com", 587) { Credentials = new NetworkCredential("isavepluscom@gmail.com", "123456789"), EnableSsl = true }; smptClient.Send("isavepluscom@gmail.com", "test@gmail.com", "Testing Email", "testing the email");

Categories : C#

Can't connect to remote server from FireFox but works in IE & Chrome
Links in href must be enclosed in "" as <a href="http://123.abc.com/apps"></a> Read more about using links here. Also link url must not be broken on server end.

Categories : HTML

Python code to establish an ssh to remote server and then connect to MYSQL
The ip address "127.0.0.1" that you use in your connection object refers to localhost, which is the computer the program is running on. You can't remotely connect to the localhost of another computer. You need to replace the host ip address with the ip address of the remote server. Also you should only need the MySQLdb.connect object, not the ssh object if you connect correctly.

Categories : Python

Could not connect Smartgwt application with mysql database remote server
You're getting this problem because you must be writing some code that accesses ClassNotFoundException, SQLException, IOException, in a class that is contained in the client folder. Any class in this folder cannot access every Java class. Your server side logic should be written in a class that is contained by server folder. To understand the project structure of GWT, have a look at the following link: https://developers.google.com/web-toolkit/doc/1.6/DevGuideOrganizingProjects#DevGuideDirectoriesPackageConventions To understand why you cannot use every class in client package, have a look at the following link: GWT - did you forget to inherit a required module?

Categories : Mysql

Using ssh to connect and execute commands in a remote server within a bash script
So I have a couple suggestions: When running remote commands, sometimes its important to simulate a tty. In order to do that, Try ssh -t -t to force pseudo-tty allocation even if stdin is not a terminal. Have you thought about using salt-stack ? Salt allows you to run remote commands, in parallel on multiple machines across a network. Salt is an amazing solution for running remote commands on other machines, and its extremely easy to setup. Try running your remote command with bash -x before running the script, that way, you should see all output needed to help you debug the situation. If thats not enough, make sure you redirect standard out/error to a file to see what went wrong eg: ssh user@remote.com 'bash -x ./script_2004.5664 | tee -a ~/some.log > 2>&1'

Categories : Bash

Connect to mysql on Amazon EC2 from a remote server - ERROR 2003
SOLVED the problem: i have in the iptables this line REJECT all -- anywhere anywhere reject-with icmp-host-prohibited and this line only append the rule to the end of the list so the reject catch it first sudo iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT to solve it i needed to put the rule higher in the chain, i.e. use -I switch like this: sudo iptables -I INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT

Categories : Mysql

Not able to connect any remote database server after installing Visual studio 2012
Have a luck via running following command (netsh Winsock reset) from command prompt mentioned in social.msdn.microsoft.com/Forums/vstudio/en-US/2d11b6f9-3ada-4682-b643-c721a97af4ba/cant-connect-to-database-after-installing-vs-11-pro-beta

Categories : Sql Server

Very slow deploy on azure: 'Warning: Unable to connect to the remote server'
Run a repair on your Visual Studio 2012 installation by selecting the application name in Programs and Features and clicking on Change. If that doesn't work, you may also try to re-download your Azure subscription publishing profiles again (remove the current ones from VS first).

Categories : Azure

Running a function on a remote server via SSH in a script
There's no straightforward way to do that. But you can extract all the function definitions and inject them as a command at the beginning of your remote command: ssh "$user@$machine1" "$(declare -f); main" Notice that you still might have problems with global variables and other resources.

Categories : Function

Leaving a Command Running on a Remote Server
You can use one the following choices : tmux nohup screen tmux & screen are some complete environments that can be attached and detached for 1 to N users. If you need something straightforward, look nohup first.

Categories : Shell

How to get IP address of the Client accessing my page where My web page or WebApp is hosted at some remote server
Check out this article at W3Schools: http://www.w3schools.com/asp/coll_servervariables.asp you can try: Request.ServerVariables("remote_addr")

Categories : C#

Creation of folder on FTP fails when running on remote server
A few questions: Is the host (xxxxx in your example) passed to the Create method a reachable domain from your machine/network ? What is the resp.StatusCode when you debug ? Are any exceptions thrown ? A similar issue: http://stackoverflow.com/a/3789350/956364 Other than that, your code looks identical to the version by Jon Skeet: How do I create a directory on ftp server using C#?

Categories : C#

Running a C Server on Mac. How to Connect to it on Terminal for debugging purposes.
Try this: telnet 127.0.0.1 [portno] You should have something like the following in your /private/etc/hosts in order for localhost to work: 127.0.0.1 localhost Also, make sure that you run telnet 127.0.0.1 123 and not telnet 127.0.0.1:123 (where 123 is the port).

Categories : C

How to connect to a MySQL server running on a Virtual Machine
You problem is that (probably) your mysql is bind to 127.0.0.1 instead of 0.0.0.0. You should change bind in /etc/mysql/my.cnf to 0.0.0.0 bind-address = 0.0.0.0 And then restart mysql of course.

Categories : Mysql

Unable to reach remote server when running Android app via Trigger.io
Cross-domain XHR requests are not possible without extra configuration from a Trigger.io app. In this case, you should be able to use forge.request.ajax to submit the form: https://trigger.io/docs/current/api/modules/request.html. In other cases, where usage of the request module is impossible, it may be possible to set up Access-Control-Allow-* headers on the server side so that normal XHR works: https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS.

Categories : Android

Server Code HTTp POST to remote server; Javascript API call
use the $ajax() function from jquery use urllib and urllib2 to access external resources from python. Call these libraries from within your view function Here's an example for the $ajax function: $.ajax({ type: "GET", url: '/htmlApi/sendSms/', data: { 'phone':'+12412354135', }, success: function(data){ $("#ajaxDestination").html(data); } }); here's an example of a view function that posts data to the remote server: def verify1(request): u = request.session['user'] u.phone_number = request.GET['phone'] u.save() apiUrl = "http://www.XXXXXXXXX.net/api/send.aspx?username=XXXXXXX&password=XXXXXX&language=1&sender=XXXXXX&mobile=" + request.GET['phone'] + "&message=" + 'ghis' + " is your verificatio

Categories : Javascript

How to connect to a SQL CE database from JavaScript running in Internet Explorer?
You cannot access a SQLCE database from JavaScript, but you can publish it through OData protocol using ASP.NET WebAPI or WCF Data Services. If you use IE10 (that supports EcmaScript5) you can follow this tutorial

Categories : Javascript

Jenkins job stuck running a .bat file trough on a remote ssh server(windows 2008 R2)
Set up your windows client as jenkins slave because cygwin openssh is not a proper way for remote jobs. In your case I would recommend the Java Web Start option. An configuration example is published on: https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

Categories : Jenkins

#1130 - Host 'localhost' is not allowed to connect to this MySQL server - After running an Acunetix scan
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1'; http://dev.mysql.com/doc/refman/5.1/en/adding-users.html EDIT. this because your mysql server is on read_only option. to turn it off connect to the server with root user: mysql-h localhost-u root-p and run the command: mysql> set GLOBAL read_only = false; mysql> FLUSH TABLES WITH READ LOCK; mysql> UNLOCK TABLES; EDIT2; you must have stop the server and run this mysqld_safe --skip-grant-tables due to root pwd chg so stop the server and start it normal with a start

Categories : Mysql



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.