Programming :: Connect A Client To A Server In Windwos?
Mar 25, 2010I am getting this error when i try to connect a client to a server in windwos ,anybody knows why ?
View 3 RepliesI am getting this error when i try to connect a client to a server in windwos ,anybody knows why ?
View 3 RepliesI have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?
View 1 Replies View Relatedi have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
I am running CentOS release 5.5 (Final) with PROFTP installed.
I am able to connect to the ftp server from local, but when I try it from dream weaver CS5 it can't connect to the server. I ran a port scan and 21 seems to be open:
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
53/tcp open domain
[Code]....
I bought VPS Linux server, but i would like remote desktop thought NX Client. Firstly I installed on server ubuntu like this:
Code:
gpg --keyserver keyserver.ubuntu.com --recv-keys 493B3065 && gpg --export -a 493B3065 | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install kubuntu-desktop
Then I proceed as described in this tutorial:
Code:
[URL] but it's not work when I try loging to the server via NX Client. Then I try this tutorial:
Code:
[URL] but I don't receive public key (when I put this code sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2a8e3034d018a4ce) .
I have reinstall my server. I think everything was okey. But i can not connect my server with NX Client.
View 3 Replies View Relateduntil 2 weeks ago I had o.S11.3 on both my Siemens and Asus laptops. I have installed NX No Machine. ( I know it's not open source,I am using the free version). With commandline ( root) /usr/NX/bin/nxclient I was able to connect to the other machines. I got Qt: Locales not supported on X server, the NX menu popped up and I was able to connect by inserting resp codes. After fresh install of o.S.11.4 on the ASUS the commandline (root) answers:
xlib: connection to":0.0" refused by server
xlib: No protocol specified
nxclient: cannot connect to X server:0.0
The ASUS can still be reached from the other machines (one with o.S.11.3,the third one with o.S.11.2 ) SSH ( Lan)connections are all working forth and back between the machines, even to and from Win XP, however only from Win 7 on the ASUS, but that's a Win7problem. Comparing the installed xorg-x11- server-extra : on o.S. 11.3 Additional X servers ( Xmdx,Xephir,Xnest,Xvfb ) ,on o.S.11.4 the Xvfb is missing, might that be the reason?
I got the following message when starting the Jack Control.
Could not connect to JACK server as client.
- Overall operation failed.
- Unable to connect to server.
Please check the messages window for more info
15:25:37.902 Patchbay deactivated.
15:25:37.903 Statistics reset.
15:25:38.020 ALSA connection graph change.
15:25:38.216 ALSA connection change.
15:25:39.777 Startup script...
15:25:39.779 artsshell -q terminate
sh: artsshell: not found
15:25:40.182 Startup script terminated with exit status=32512.
15:25:40.183 JACK is starting...
15:25:40.183 /usr/bin/jackd -R -dalsa -dhw:0 -r44100 -p1024 -n2
15:25:40.190 JACK was started with PID=2052.
no message buffer overruns
jackd 0.116.1
in my office all users connect to internet via VPN.in our office there is one special server that we want when users connected via VPN,users can not connect to the special server and when users are not connect to via VPN can connect to that server.
View 3 Replies View RelatedWhat client can I use on a MAC to connect to an openvpn server?
All the client s seem to use password connections whereas the openvpn server uses certificates.
So a while back I was able to mount a directory from my OpenSuse server as a NFS on an Esxi server. After restarting the Esxi server, the NFS became inactive and I was unable to remount it. The error given was that the Esxi client was unable to connect to the Suse server. I was looking into the showmount -a command on the Suse server and it showed the mount point on the Esxi server. Could this be causing the Suse server to reject new attempts to mount the directory? What else can I try to fix this problem? Also I should note that both servers can ping each other.
View 2 Replies View RelatedI have Samba PDC server on CentOS 5..we have 10 thin clients in our network which were working fine previously with the windows Terminal services... Now i have replaced my windows 2003 Domain to Samba Domain Controller.. Is there any why i can connect our thin clients with SAMBA DC in the our environment?
View 2 Replies View RelatedJust installed openldap server on a VM CentOS called 'ldapsrv', it works fine, ldapsearch returns all ldap information.
Installed openldap client on another VM CentOS called 'ldapclient1', configured it with most basic configuration, no ssl/tls etc. but ldapsearch returns error:
ldapsrv is pingable:
Some outputs:
PHP Code:
PHP Code:
More for my own posterity than anything else, I thought I'd document here the way to get to eDesktop through linux (debian, ubuntu) at the University of West Florida (UWF), since they appear to only support Windows through their documentation on the University web site, and the link through Argus (the secure web site) doesn't work in Linux. This is sometimes needed to use the University resources (libraries and computer programs) from remote locations, and otherwise a google search is fruitless. I had to have a guy in the computer science department show me how to do it.This may apply for other Universities with similar setups.
View 1 Replies View RelatedI followed this tutorial:
http://www.howtoforge.com/virtual-us...l-ubuntu-10.04
Minus the Quota for the mailboxes, since I don't really care about that. But I don't think that should cause any problems in the configuration.
The server is in my local network.
I tried to connect with Thunderbird and Kmail. Kmal brings up an error message eventually, saying something about a time-out.
Squirrelmail says code...
I searched everything & everywhere only to see that more people have that same error message come up with Squirrelmail. From my understanding some have fixed the issue but I couldn't actually find a solution to this.
Does anyone know how to fix this?
I am trying (desperately) to setup freeNX so that I can access my Mandriva box from my Macbook over my network. I have great need to be able to do this. Here's the necessary info for you: Mandriva PC: running Mandriva 2010.0 with freeNX installed from the Mandriva repos Macbook: running OS 10.4 with the Nomachine NX Client installed Now, I have followed the setup from the Mandriva wiki as well as the freenx wiki to no avail. I simply cannot connect the Macbook's NX client to the server. I get an authentication failed message. However, I can ssh from the Macbook to the server just fine (that's how I'm getting most of this work done).
[Code]...
OS:
Red Hat ES 5.2
Kernel:
2.6.18-92.1.18.el5
Samba version:
[root@intranet samba]# rpm -qa |grep samba
system-config-samba-1.2.39-1.el5
samba-common-3.0.28-1.el5_2.1
samba-client-3.0.28-1.el5_2.1
samba-3.0.28-1.el5_2.1
When I try to connect to the share from my XP machine, I get a "network path cannot be found" error message.
Below is the entry in /var/log/samba/samba.log
[2008/11/19 11:57:51, 0] smbd/service.c:make_connection_snum(1003)
'/server2/test' does not exist or permission denied when connecting to [server2] Error was Permission denied
Here is my smb.conf file:
[global]
# Server name
server string = Intranet Server (Primary)
# These are the default password settings.
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
# Define NT domain/workgroup name.
workgroup = intranet
# Security mode. (See SAMBA documentation for details.)
; security = user
# Restrict conections to specific IP addresses.
hosts allow = all
# The %m variable sets a separate log file for each
# connecting machine.
# log file = /var/log/samba-log.%m
# Keep it basic - one file!
log file = /var/log/samba/samba.log
# The number of minutes inactivity before a connection is
# disconnected. (This disconnection should be transparent to most
# clients, which an have auto-reconnect feature. Removing inactive
# connections is to preserve the server's resources.)
deadtime = 10
# These socket options are suggested in the default smb.conf file.
# Who am I to disagree?
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Define both Ethernet interfaces. (Otherwise, I suspect only one
# will be configured??)
interfaces = eth0 eth1
username map = /etc/samba/smbusers
; guest ok = no
; guest account = nobody
[server2]
comment = server2
path = /server2/test
write list = @intranet
force create mode = 775
force directory mode = 2775
writeable = yes
; browseable = yes
valid users = intranet
/server2 and /server2/test are owned by user intranet and both directories have permissions set to 777.
Has anyone come across this problem in the past?
I'm trying to set up a VPN connection between our CentOS 5.3 server at work and my bosses XP computer at home. At this point, we are kinda locked into Quickbooks. I'm testing the connection from my XP boot at home to see if it works. I can log into our servicemanuals easily enough from XP at home however, the windows takes forever to update. I have the Samba server only listening on port 445 because is seems to work more efficiently at work. I connect to the Samba shares via linux from home and everything works well but, when I try to do anything with the shares from Windows client at home, it's very slow!
I'm thinking that it must have something either to do with the Windows OpenVPN client or the client.conf file. Is there anything I should look at in the .conf file for answers?
I have x11 forwarding enabled in /etc/ssh/sshd_config on a suse 11.2 32 bit box running kde I can open x apps on a windows machine using xming and putty just fine, but when I boot the same machine into suse 11.2 64 bit using kde and try using konsole I get: cannot connect to x server
The command I'm using to log in is: ssh -X -l username host I doubt the problem is with the server I'm logging into or it wouldn't work in windows, not really sure what to look for as I've never had a problem using x11 forwarding from a linux client before only windows ones
I am not exactly newbie with GNU/Linux, but definitely new to SSH/NX stuffs. I followed the below tutorials for installing FreeNX so that I can access my desktop like TeamViewer in windows.
https:[url]....
https:[url].....
But I don't see the folder NX like the one mentioned here.Then edit the file /usr/NX/etc/server.cfg
I don't see a folder called NX to proceed. Also when I use nomachine client to connect from Windows, it couldn't connect and I get the below errors.
nxssh: <host-name>: no address associated with name.
how to make connect to freenx server from windows using nomachine client?
i have a problem with one of my PCs which refuses to run the CCLc timer on its screen, i have tried to run the application so many times but every time i run it it does not connect to the server to show the timer automatically as the other PCs do,therefore the client cannot know how much he/she is supposed to pay.this forces us to manually time the clients that are using that PCs.
View 1 Replies View RelatedI have configured server ubuntu 11.04. Everything works fine, but there is a need for some clients to connect local hard drive. What should I do? How and what modules are added to the ltsp-image? How to register in the fstab on the client? Maybe I'm going the wrong way?
View 1 Replies View RelatedIn all the examples I have found the server accepts the client's conection, proccess the data received and close the socket. In an very schematic way it would be something like:
Code:
client_thread{
select to see if there is data to read from socket fd
if there is something to read{
[code]....
Should I use mutexs or semaphores to block the socket fd before read and write or it is not necesary?
I looking for an algoritm to encrypt some data sent from a c program(client) to a php server(can be in perl or cgi-bin) over the internet. How should i send it in c? Some http call? Or it can be in via a perl script. Then i need some basic algoritm to encrypt it. Any ideas. How do i save the key in the c program? Just something basic so its not clear text. This is not for a bank or visacards etc
View 2 Replies View RelatedI would like to know how to install a webmail server and a suitable client to help connect to it that is compatible with both windows and linux ubuntu.
View 1 Replies View RelatedI have a problem creating my second socket in client file. the program was running well but when I try to add another socket to connect to the same server, I got a problem connecting to the first socket! it doesn't make sense. the original code was:
sockfd[i] = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd[i] < 0) error("(MAIN) - Error openning socket 1");
port_num[i] = portno;
bzero((char*) &serv_addr[i], sizeof(serv_addr[i]));
[Code].....
I want to built a Chat Program (based on Socket connection) between client and server. I use the GTK+ &GLADE graphic tool. Can you send me the code for this program or any material to learn. Also, I want to know how to show the input to text view (in GTK+&Glade).
View 3 Replies View RelatedI have written a server application which has select for both incoming new client connection requests and incoming data from client. I am able to process incoming connection requests and client data.
For example, server has 8 clients connected to it. If client 3 disconnects from server, how will server come to know this client has disconnected and to close its client socket fd gracefully? Does server's select get data on that client socket fd as 'close' data or any error code in recv() function that notifies server to close this client socket fd? Also if client disconnects abruptly without sending close request to server, how should server handle this? Does server get "EPIPE" error?
I am new in client server programming and i have written code for single server to single client communicating one port(3490). but i have no idea how my single server will be communicate with different client on different port.how this will be happen ?
Any idea to understand the logic or send any good link or any piece of code in c , i searched on net but all help was mostly for java progamming.
I wrote a simple client server socket program in C.
View 1 Replies View Related