Networking :: Connect To A Remote Machine Using Tcp Socket?
Mar 2, 2010
#server.pl
use IO::Socket;
$| = 1;
$socket = new IO::Socket::INET (
LocalHost => '10.100.207.13',
LocalPort => '5000',
code....
it displays the message "couldn't connect to the server". How can i connect to the remote machine using tcp socket?
View 3 Replies
ADVERTISEMENT
Dec 16, 2010
i want to open a cmd.exe of a remote machine in my own machine.. i am using c language. its just for educational purpose.
View 9 Replies
View Related
May 19, 2010
I just started to run Fedora/Linux on my laptop... I was using XP and using putty to connect to Linux servers at work. I am assuming I can use the terminal editor supplied with Fedora to connect to remote linux server? Can I uses the terminal to connect to remote linux server? How do accomplish this?
View 6 Replies
View Related
Mar 30, 2010
regarding a remote connection from my workplace to my home system. On my home a have a connection to the ISP and the provider is allocating a dynamic IP to my router. How can I connect from my work computer to the home computer? There are other application or other stuff for making this possible?
View 5 Replies
View Related
Mar 10, 2011
is it possible using a perl script to test for a socket listening on a UDP port on a remote host ?I work in an environment where netcat is not allowed and from time to time I need to see if a UDP port is open on a remote host.
View 6 Replies
View Related
Jul 29, 2010
I'm using mysql server through tcp/ip with no problem. But I don't know since when I'm not able to connect through socket. There are lots of topics but my bad I couldn't find one works for me.
OS: Ubuntu 9.04
mysql 5.0.75-0ubuntu10.5
my.cnf
Quote:
[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
skip-name-resolve
safe-show-database
code....
/var/run/mysqld/mysqld.sock socket exists and has chmod 777
Error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'localhost' (2)
View 3 Replies
View Related
Sep 16, 2010
I have a customer who is complaining that they can connect to prt y on IP x with telnet. They are seeing the following:
telnet x.x.x.x y
Trying x.x.x.x...
Connected to x.x.x.x.
Escape character is '^]'.
after some time the connection of course times out. Connection closed by foreign host. There is no telnet service running on this port so they cannot do anything, but they are complaining tht the fact that telnet "connects" is a security risk. I am having difficulty explaining why they are able to connect with telnet. I know it has to do with the socket layer API in Linux but I am having difficulty explaining this sufficiently. I also can't just say "this is the way linux works" to them. I am looking through "UNIX Network Programming" by W.
View 3 Replies
View Related
Aug 3, 2010
I am having problems accessing my work desktop through my home computer running Fedora 13. I am able to remote into work through MAC and Windows XP. I loaded vpnc and was able to connect to the concentrator. I also able to ping it too. I cannot connect to my desktop using rdesktop. I get error message �Unable to connect, socket is unavailable. I cannot ping to the desktop.
View 2 Replies
View Related
Jul 3, 2009
I have an x application I am trying to run under gnome. It assumes a fixed ip address and exclusive use of the eth0. I have run it under gnome on RHEL 5.3. I set the ip address and ifconfig confirms the correct address. When I run it I get "SocketConnect() error:
Resource temporarily unavailabele, port 8005. (on the terminal that I started it)
This is indicative that it has failed to make a connection to the outside world. One difference I notice between the non-working and the working is that, the error message seems to stop coming out on the fedora gnome, almost immediately, whereas on the other installations it will come out indefinitely until it connects. is virb0 interferring. What is different in the networking on fedora 11 then RHEL?
View 2 Replies
View Related
Jul 23, 2010
Right now I have a machine set up running Fedora. I have configured inittab to accept Console Logins, but I am having problems getting my netbook running PuTTY to connect. How would I go about finding the Host Name and Port to connect to?
View 6 Replies
View Related
Jun 4, 2010
I want to configure socket timer to release socket(port) once the connection is terminated. Do we have something in Linux OS to configure this delay to release socket?.
Any command, link or man-page anything will be helpful.
I browsed a lot but unable to find it.
View 1 Replies
View Related
May 5, 2009
I had installed Fedora 10
Below is the output of uname -a
Linux 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux
I need to enable telnet service on it, then found xinetd and telnet-server not installed,
Then I had installed below
First I had installed Xinetd: xinetd-2.3.14-21.fc10.i386.rpm
then I had installed telnet-server: xinetd-2.3.14-21.fc10.i386.rpm
After installation I executed below commands
Service xinetd start
Chkconfig xinetd on
Chkconfig telnet on
Service iptables stop
Chkconfig iptables off
Iptables �F
After I had tried telnet localhost ----IT FAILED
when I run telnet server manually by issuing the below command
/usr/sbin/in.telnetd, I get below error
[COLOR="Red"]/usr/sbin/in.telnetd: getpeername: Socket operation on non-socket[/COLOR]
I have other system running same OS, I had followed the same steps discussed above to enable telnet, It works fine on it.
View 1 Replies
View Related
Nov 19, 2010
I can ssh from my local machine (Ubuntu 10.4 64bit) to a remote Linux server. When I try to copy a file back to my machine (or just ssh to my machine) I get the following error - "port 22: No route to host".ifconfig on my local machine gives one ip address for "lo Link encap:Local Loopback" and one for "wlan0 Link encap:Ethernet"; I tried ssh both.I work on a laptop with a wireless router (which is also the modem)
View 6 Replies
View Related
Jan 2, 2010
I can use on the local machine the following command:
Code:
# cat /path/to/file >> /path/to/otherfile
but how it works to write from a local to the existing file from a remote machine?
View 3 Replies
View Related
Jun 18, 2010
when i ping a remote machine to 172.16.1.55 then i get this result...how can get normal packets......
64 bytes from 172.16.1.55: icmp_seq=1 ttl=128 time=0.468 ms (DUP!)
64 bytes from 172.16.1.55: icmp_seq=2 ttl=128 time=0.448 ms
64 bytes from 172.16.1.55: icmp_seq=2 ttl=128 time=0.469 ms (DUP!)
[code]....
View 1 Replies
View Related
May 19, 2010
How can I configure, the packet capturing mechanism to allow non - privileged users to use it...
View 2 Replies
View Related
May 29, 2010
I tried to install vsftpd on my server and while the installation went fine, I can't run
Code:
restart vsftpd
As I the get error
Code:
restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with
sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.
View 4 Replies
View Related
Apr 14, 2009
I am using VNC to login to remote machine (vncserver). My question is; How can I login to remote machine (vncserver) through VNC client, without having to login to vncserver first physical. For better explanation here is an example: If john wnat to login to vncserver remotely first he has to login the vncserver physically then he can login remotely.
View 5 Replies
View Related
Apr 21, 2011
I am trying to get a mount in my root directory to a folder on a remote machine so that a log in is not required to access it. I seem to be having some problems with permissions though.
So far I have:
- added the machine to my /etc/hosts file
- added remotemachine:/data /auto nfs ro,soft 0 0 to my /etc/fstab
- added remotemachine:/data /auto nfs rw,soft,addr=10.112.33.4 0 0 to my /etc/mtab file
- added /hostmachinefolder mymachineip(rw) to the host /etc/exports file
However when I mount -a on my machine I get:
mount: remotemachine:/folder failed, reason given by server: Permission denied
View 4 Replies
View Related
Jun 21, 2010
How can I use socks proxy which is on a remote machine?
Machine A: Running a socks5 proxy on port 1080..
Machine B: Wants to use socks proxy of Machine A..
How can I do that? I have access to both the machines..
View 2 Replies
View Related
Apr 26, 2011
I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:
[code].....
The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?
View 4 Replies
View Related
Nov 7, 2010
I have recently installed fedora 14 and configured vpn to access my work network. I need to access some windows machines which although I can ping I cannot remote desktop into. When I go to Applications>Internet> Remote Desktop Viewer and put in the machine name (either just the machine name or the FQDN including the domain name) I get an error "Connection to <machinename> was closed".
View 4 Replies
View Related
Feb 19, 2011
I have had a look at the the information on the ubuntu forum about this but am having trouble getting the server to do what i want it to do.
I have a VPS running ubuntu 9.10 and i am trying to set it up to redirect port 25 to a remote machine via a VPN connection (remote machine connected via VPN)
i have tried setting this up in the firewall using webmin but it is not working.
View 3 Replies
View Related
May 26, 2010
i have a problem........ How to redirect local http port to remote ip ddress(192.168.10.64) using iptables..my destro is Centos 5.3 my rule is this iptables -t nat -A PREROUTING -s 0/0 -d <my local ip> -p tcp --dport 80 -j DNAT --to-destination 192.168.10.64
View 1 Replies
View Related
Mar 1, 2010
I am accessing a remote DB using JDBC from inside a java program. is there any terminal command with which I can see the remote machine's ip/mac address?
View 1 Replies
View Related
Nov 30, 2010
How do you transfer files on a Linux machine with ftp,sftp and scp disabled onto a remote machine
View 2 Replies
View Related
Jul 18, 2011
Whenever I put ssh into remote machine am getting the following messages. Write Failed: Broken Pipe (After logged into that machine ) Read Socket Failed: Connection reset by peer (While trying to log in ) Also known_hosts file is changed frequently.
View 1 Replies
View Related
Dec 26, 2009
Is there any way to redirect a remote Linux machine mplayer output audio to local one?
View 2 Replies
View Related
Dec 14, 2010
I want to get the connected client MAC Address after accept() call. I can get the IP address of the client but i don't know how to get the client MAC Address in my this programme. Here I am Posting my Code.
#include<stdio.h>
#include<sys/socket.h>
#include<sys/types.h>
[code]....
View 10 Replies
View Related
Jan 31, 2010
I am pragmatically trying to upload a list of files from my client machine to a proFTPd server I have running on Ubuntu. Every time I get several (around fifty) files into the transfer, I get the following error: Quote: Connection reset by peer: socket write error
I am able to remotely upload 25,000 small files of ~ 1K in size, but when I go to upload hundreds of 2-4 Mb files, I get a socket write error. Am I using up all available sockets before they can be released? If so, how do I release the sockets? If not, what does this error mean and why am I getting it?
View 1 Replies
View Related