w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Connecting to remote server with pgadmin
Specify a different local port in the script. The specified port is already in use by something else, possibly a local PostgreSQL running on port 5433. That's really just a toy wrapper around an SSH tunnel. Personally I tend to just fire up the ssh tunnel directly when I need that, or ssh into the remote machine and use psql on it locally.

Categories : Postgresql

Connecting to a remote database server at run time
I don't know what type of application you're creating. But you can add a key to the config file at runtime and recall it next time the application is run. System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings["connectionString"].Value = "<connectionstring>"; config.Save(ConfigurationSaveMode.Modified);

Categories : C#

Connecting to a remote machine through client-server
You say the other machine has an external ip address. This implies it also has a local ip address; ie it is behind a NAT firewall or similar. In this case, you will have to configure the firewall to allow communication to take place, eg by setting up port forwarding. Applications such as MSN Messenger, VOIP clients etc have elaborate mechanisms to negotiate this automatically, but they're often not very successful.

Categories : Vb.Net

Connecting to a Remote Server on a different domain -- how do I enter the username and password?
According to Microsoft it should be possible. You need to authenticate against the remote domain, though, e.g. like this: computer = "..." username = "OTHERDOMAINuser" password = "..." Set locator = CreateObject("WbemScripting.SWbemLocator") Set wmi = locator.ConnectServer(computer, "rootcimv2", username, password) wmi.Security_.ImpersonationLevel = 3

Categories : Vbscript

Problems connecting to a remote server and performing a simple db query
Log on to your database server, check the details and obtain the correct server information such as server, username and password. Once you change the server details you shoudl be ready to rock n roll. Edit post with the host name/server name and we may be able to find it for you. You'll have a phpMyAdmin page where you're hosting the site. Check the membership area or cPanel.

Categories : PHP

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

Connecting to remote tty using perl
If you can connect to the remote host via SSH, you can also get your Perl script to run on the remote host. Maybe as a daemon. Then each script talks to the devices via local ttys, and they could talk to each other over TCP or UDP sockets, using a protocol you define.

Categories : Perl

Connecting to remote MySQL from local machine
I'm not sure why they would say not to add 127.0.0.1 - that's the local machine, which means that people from the outside can't access it. So you have skip-networking turned on and you're connecting through a local UNIX socket? Are you sure it didn't say not to add anything other than 127.0.0.1? Do you have SSH access? If so, you can easily use SSH tunneling so that you'll only have to connect locally with a command like ssh -L 3307:localhost:3306 -N yoursever.com Then you connect locally on your home machine to port 3307 (you can make this 3306 but you said you develop your database locally as well, so in that case you'd need a different port). Then the packets go through SSH and magically appear at the database, looking as though they had come from the same machine. The security th

Categories : Mysql

Connecting directly to remote MySQL database in iOS
You need to create a web service that will expose a set of APIs that are then use by your iPhone app to push/pull data. You may then choose to cache the data locally (on the iPhone) in a sqlite3 database. The most common data transfer formats are JSON and XML.

Categories : Mysql

connecting a remote django app to postgresql on openshift
You can do a reverse port forward from OpenShift to your other server OR you can port forward from your server to the OpenShift server - but there is no direct DB access. Direct access would require exposing your database to the outside world and is generally considered bad security practice

Categories : Django

connecting to SQLSERVER database without remote connection
I guess I somehow need to force the other company to allow remote connection with us. Am I wrong? Very wrong, you hardly ever need remote connections to a database. An HTTP service in front of the database is the way to go. Would you otherwise hardcode the database credentials in the application you distribute and hope the T-SQL TCP port is opened for outgoing traffic in the user's firewall? since i dont know any of the table names this is nonsense Then ask them for a diagram. even if I write a .net web service or web application is it possible to publish it over an ftp? Of course, why not?

Categories : Dotnet

Connecting to a remote database from Azure Websites
Are you using the default MySQL Database from Web Sites? If so, could you be hitting an issue with the maximum concurrent connections? The default database allows up to 4 concurrent connections. If you want to upgrade to a larger database you can do so from the provider ClearDB

Categories : Mysql

Connecting to remote machine without username/password
You have to use interop to use the Credential Management API in .NET: http://www.microsoft.com/indonesia/msdn/credmgmt.aspx

Categories : C#

Glassfish, EC2, Swing Application not connecting to @remote interface
You should still be able to add an entry to your hosts file for your eIP - have you tried that? EC2 instances all have a public IP and a private 10.X.X.X address. The eIP replaces the public IP address and is fixed (until you disassociate it). The alternative with AWS, which will allow you to have a fixed private IP too, is to deploy to a VPC. Amazon have some very good documentation on VPCs. What you're getting, in a nutshell, is comparable to a local network, so you can just pick your CIDR block and create subnets, for example 10.0.1.0/24. Now, when you launch an EC2 instance, you can launch into that VPC subnet and choose the private IP. Along with your eIP, you now have both IP addresses (public and private) set permanently, unless you decide to change them yourself (for whatever re

Categories : Java

Connecting to remote services from multiple threaded requests
Since memcached have syncronous protocol you should not write next request before you got answer to prevous. So, no other thread can chat in same memcached connection. I'd prefer to make thread-local connection if you work with it in "blocking" mode. Or you can make it work in "async" manner: make pool of connections, pick a connection from it (and lock it). After request is done, return it to pool. Also, you can make a request queue and process it in special thread(s) (using multigets and callbacks).

Categories : C++

Exception connecting to Remote Solr Instance (407 error)
HTTP code 407 implies Proxy Authentication Required, you need to set authentication information while making connection to server via HttpClient: httpclient.getCredentialsProvider().setCredentials( AuthScope.ANY, new UsernamePasswordCredentials(username, password)); solrServer = new HttpSolrServer(solrUrl, httpclient);//with credentials you may like to check similar discussions: Solr - instantiate HttpSolrServer with Httpclient Solr 4 with basic authentication

Categories : Java

Trouble connecting the cassandra database via remote access through JAVA
I could ping the machine. But I could not access the machine using telnet in windows. The servers is linux machine. Do you have any idea ? Your firewall is blocking off the telnet port and probably the rest of the ports cassandra needs. You need to add an exception telling the firewall to open port 9160 (the client port). 9160 is the only port you really need to have open unless you want remote jmx management etc. To add an exception to your linux firewall: iptables -I INPUT -p tcp --dport 9160 --syn -j ACCEPT And if you want to save the state: service iptables save

Categories : Cassandra

Can I migrate remote SVN to local disk without exporting dmp files on remote server?
You can dump only latest revision range with the -r switch. svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas] and then you can load this increment in the new repository. Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html Example: http://www.vioan.ro/wp/2007/07/31/dumprestore-for-subversion-repository/

Categories : Svn

Remote PHP Debugging with Netbeans and XDebug (remote server)
Remember you need to set the Path Mapping in the Debugger tab inside Netbeans Options. Another little big problem I was having when trying to connect from NetBeans remotely was the SSH tunnel. You have to creat it for the port xdebug will work on, 9000 usually. If you experience network problems for a moment, the tunnel might "break" silently and NetBeans will be stuck in the holy "Waiting for connection..." state. In putty, you can right click and Restart Session, but this won't work. You will need to close the putty window and re open the session for it to work again. Hope it helps!

Categories : Misc

Can I use the Integrated Security option in a connection string if I'm connecting to a remote machine that's not on a domain?
Integrated security will only work when the machines are on the same domain (or a different domain with a trust) this is because SQL server has to contact a domain controller to authenticate a windows logon, which it can only do if it is a member of a domain. Just being connected to the LAN is not enough as although the machine may be able to physically connect to the domain controller, it will not be able to authenticate users against it.

Categories : Sql Server

Batch File Connecting to Server and execute program install on connected server
Here's a little code to help you connect to the SQL server and interrogate the SQL version. @ECHO OFF SQLCMD /? > nul 2> nul IF ERRORLEVEL 1 ECHO.SQLCMD not found on this machine & PAUSE & GOTO :eof SET SQLCmdLine=SQLCMD -b -w400 REM use something like the next line for NT authentication; second line for SQL authentication REM for NT SET SQLCmdLine=%SQLCmdLine% -E -S "YourServerName" REM for SA SET SQLCmdLine=%SQLCmdLine% -U "YourSQLUserName" -P "YourSQLPassword" -S "YourServerName" SET Database=YourDatabaseName REM I will use NT Authentication for this example SET SQLCmdLine=%SQLCmdLine% -E -S "(local)" SET TestSQLCmdLine=%SQLCmdLine% -h-1 -d "%Database%" REM this will get the SQL version %TestSQLCmdLine% -Q "SELECT @@VERSION" | FINDSTR /v "rows affected" REM this will

Categories : SQL

sqlsrv error while connecting to mssql server 2008 on windows 2003 server
Two ways to try, first to check if the Native driver has the right version - is your server really a 32bit Version and not 84bit? The other thing is, to check if the extensions are actually loaded. To check that, create a file like "phpinfo.php" and put it in you folder for .htdocs. <?php // show phpinfo file phpinfo(); ?> The easy way is to search for it in the phpinfo-Page with Ctrl+F and "extension=php_sqlsrv_53_ts_vc9.dll"

Categories : PHP

Creating remote Drb server (for use with pry-remote)
You can just use binding.remote_pry(host_string, port_number) In your code to bind on host different from localhost. And use pry-remote -s host -p port to connect to this host from another computer. But pry-remote opens only one listening socket, so your colleague can only has access if you are not connected yet.

Categories : Ruby

Unable to make remote connection to Ms Sql Server 2008 R2 in windows 2003 server
MSSQL 2008 has a utility called a "Surface Area Configuration Manager" that actually blocks the TCP port to external network interfaces, by default. Check that out, and I'm betting it will solve your problem.

Categories : Sql Server

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

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

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

server code HTTP POST to the remote server - Django
Ajax CAN do cross-domain calls, but the other domain must allow you to do so by using CORS. However, if you really just need to reflect an external API from your own domain, you can set your web server to reverse proxy the relevant endpoints of the external API. This will be much more performant than proxying through Django. You can even use your web server to add authentication details into the proxied request. Apache Docs Nginx Docs

Categories : Javascript

Script working fine on development server but not remote server
If its timing out on the server it's more than likely because a link to a resource in your script is not pointing to the correct location. Leading to a function call not working or other resource not being found.

Categories : PHP

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

after working in local server, how to move OpenERP on a remote server?
This is not a generally accepted way of doing customization in openerp. Ususally, you should make a custom module that implements your customization when installed on the OpenERP server installation. Are you using Windows or Linux? The concept here is to move all of the server addons files to the upsite server, including a dump of the database which can be restored on the upsite server. Here's how. First click the Manage databases at the login screen, Do a backup database and save the generated dump file. Install openerp o nthe upsite server (*major versions must match). Copy the server addons folder, and upload to the upsite server's addon directory. Restart openerp service. Then restore the dump file from your backup location. This is basically how you can mirror a "customized" open

Categories : Python

Connecting to a SQL Server DB
Well this seems to work ok, use DBI; # $dbh = DBI->connect( "dbi:mysql:DBNAME", "root", "password" ) or die "Connection Error $DBI::errstr "; N.B. Please Check you have the required modules installed.

Categories : Perl

Issue in FileUpload - Null Value for Multipart File when deploy on remote host server but it works fine on localhost server
Looks more like a configuration problem. I too had this on tomcat and the problem was the max post size limit. You should configure properly the maxPostSize property of your http-service / http-listener. A value of 0 means unlimited size.

Categories : Java

The remote server returned an error: (503) Server Unavailable Asp.Net
WebRequest req = WebRequest.Create("http://www.google.com"); StreamReader sr = new StreamReader(req.GetResponse().GetResponseStream()); System.Text.StringBuilder sb = new System.Text.StringBuilder(); string strLine; // Read the stream a line at a time and place each one into the stringbuilder while ((strLine = sr.ReadLine()) != null) { // Ignore blank lines if (strLine.Length > 0) sb.Append(strLine); } sr.Close(); This Piece of code works just Fine. I replaced online URI from WebRequest.Create("url") method with WebRequest.Create("http://www.google.com"). Please check that part if you are passing the right url.

Categories : Asp Net

Copy file from internal server to remote server in IIS 7
try convert virtualpath to phyicalpath in a handler, such as system.web.httpserverUtil.mappath http://asp.net.bigresource.com/Uploading-files-to-server-and-saving-outside-virtual-path-bMVjFTYf4.html#l9LpkWyji http://forums.iis.net/t/1157234.aspx

Categories : C#

Inserting from remote sql server to local mysql server
As your code stands now, only one row will get inserted into mysql. The second while loop is looping on the select statement's result set. So when it gets there it is just going to exhaust the result set outputting the second, third and so on results. If that while block is not being executed then you might only have one row that matches the select statement.

Categories : Java

connecting to an SQL Server database
The problem your having with regards to connecting to the database on a server is because of SqlConnection dbConnection = new SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=true"); The best way to do this is to go to your Web.config file and find the block and add a connection to your database in there. eg <add name="ConnectionString" connectionString="Data Source=YOUR SERVER;Initial Catalog=YOUR DATABASE;User ID=YOUR USER ID;Password=YOUR PASSWORD" /> then you can just call the connection string accross your whole project whenever you need to use it. Also with regards to VS2012. There are very few companies using that IDE at the moment so your probably better off learning VS 2010 in the most part but i would agree that VS2008 is fairly out of date now

Categories : C#

issues in connecting to AD server over SSL?
If you can't get TLS to work, it is unlikely that SSL will work. Are you sure that you got the right certificate and configured the keystore correctly? Based on the SSLHandshakeException when trying to use TLS, it would seem that may not be set up correctly. Check out this SO answer for some tips on how to verify that your keystore is correctly set up: http://stackoverflow.com/a/9619478/1792088

Categories : Java

Connecting to SQL Server in Xcode
One route to take is to make a copy of that Database and put it on the phone as an SQLite Database and have a PHP script that gets the newest additions and adds them to the SQLite database. A second route you could take, is you could ask him to put it JSON format and you would have a dictionary on the phone that held all of the JSON, and then parse the JSON using apples built in parser, NSJSONSerialization or any of the other JSON parsers out there. Using the parsed JSON, you could then do as you please with the list of notifications Another method will be for that guy to write a PHP script for you to access all the notifications and you run that in a for loop and populate a table, or whatever, on the phone of the latest push notifications that way. This while take a few seconds longer t

Categories : Iphone

Client isn't connecting to server
Always create output output stream before your input stream for Object streams, otherwise you create a deadlock situation. output = new ObjectOutputStream(socket.getOutputStream()); // output.flush(); if the underlying stream is buffered input = new ObjectInputStream(socket.getInputStream()); The input reads the header written by the output, which won't be there unless the output is created first.

Categories : Java



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