Networking :: Remote Access Using Socket Programming - Open A Cmd.exe

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


ADVERTISEMENT

Ubuntu Networking :: Open The Window For Remote Access?

Jul 29, 2011

i am running 11.04 for my laptop(64bit)(inb4 use 10.10 if your a newb).anyways I got Fallout New Vegas for my home computer(not laptop)(windows 7 32-bit) and I am enjoying the except we have the worst mouse/keyboard setup ever. So I am interested in Remote accessing my windows computer from my laptop and game Fallout on that(is that even possible) also, I really do not want anything to do with WINE so putting it on my ubuntu is not desired.I have basic knowledge of windows and even more basic of linux knowledge.So I can open the window for remote access.I even have the IP of my other computer.. It even recognizes the domain but pops up with this window when I try to click it.

Quote:

Browsing for service type _ssh._tcp in domain domain.actdsltmp failed: Timeout reached

View 2 Replies View Related

Programming :: Remote Client Mac Address On Socket Descriptor?

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

Programming :: Fetch The Remote Client Mac Address On Socket Descriptor?

Dec 14, 2010

I have written one simple code which is posted here. i want to fetch the Mac Address on socket descriptor which is returned after accept () call.

Code:-

#include<stdio.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netinet/in.h>

[code].....

View 1 Replies View Related

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 View Related

Programming :: Socket Programming - Detect Whether A Client Socket Is Closed / Active?

Mar 8, 2011

iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?

client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....

View 3 Replies View Related

Networking :: Using A Perl Script To Test For A Socket Listening On A UDP Port On A Remote Host?

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

Networking :: Unable To Open Socket (Not Available Error)

Aug 12, 2010

I've been tasked with transferring a Python web server from a Debian box to a Fedora server for work. (I think) I've been able to transfer all required files but I'm unable to run the web server because whenever I make the HTTPServer call in the python file I get an error "Cannot assign Requested Address".

I've basically traced the issue back to the server being unable to open a socket on the requested port (8085 in this case). I've checked netstat and there are no processes running on that port (or any other one I've tried for that matter) so wondering if there's a system configuration I need to do to allow programs to bind to sockets. Is there a deny configuration set up somewhere I need to modify? Does this even make sense?

View 1 Replies View Related

Ubuntu :: Close Open Ports To Keep From Remote Access?

Apr 11, 2011

I was port scanning my computer and i found some open ports. How would i close these ports so they cannot be remote accessed?

View 1 Replies View Related

General :: Socket Programming - Feed Some Words One By One To The Socket

Jul 6, 2010

i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...

Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....

the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.

View 4 Replies View Related

Programming :: Setsockopt : Socket Operation On Non-socket Getting Error?

Mar 30, 2009

im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:

Code:
int main()
{
int socket_fd, new_socket_fd, k;
struct addrinfo hints, *server_info, *p;
struct sockaddr_storage peer_address;
code....

View 7 Replies View Related

Networking :: Socket Programming - Connect To Port Y On IP X With Telnet

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

Server :: Squid - Cannot Open Session Manager - Cannot Open Network Socket

Jan 27, 2010

I have configured a squid proxy; it's running, but there was a problem: it does not provide service to client side.

The error was: "could not connect to session manager" "cannot open the network socket"

View 1 Replies View Related

Networking :: Configuring Socket Timer To Release Socket Once The Connection Is Terminated?

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

Networking :: /usr/sbin/in.telnetd: Getpeername: Socket Operation On Non-socket?

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

Networking :: Socket Programming: Sending And Receiving Msgs Back And Forth

May 19, 2010

I have a server which is used by number of client Apps. Now when a client initiates a sendto request to a server it has to respond(after recvfrom) by sending a message using sendto back to client and this should be done back and forth.

What I dont understand is, does the client have to open a new port to receive packets from client? If yes, then how will server know to what port of the client(assuming server ports are well-known to clients)?

I had given up on sending messages back and forth using UDP and switched to TCP. I could send a read and write message back and forth. But the trouble comes when I have more than one client wanting to talk to server using SOCK_STREAM. The first one gets through but the second client seems to get blocked forever(but I got no error upon socket creation or upon connect with the server on the same port as the previous client)..

View 4 Replies View Related

Networking :: Unable To See Shares On Samba Server - No Authentication Access Desired (open Access)

Jun 12, 2009

I've been running a Samba server under RedHat 8 for five years without a hiccup. I want to cut over to a F10 box but cannot get shares accessible. smbclient attempts fail over NT password error. SELinux is disabled. Server is visible on the network. Users require no password access to shared data.

smb.conf follows:

# Samba config file created using SWAT
# from UNKNOWN (>)
# Date: 2009/06/12 14:15:15

[code]....

View 1 Replies View Related

Ubuntu Networking :: Interhack And Error "Can't Access() Script - Could Not Create Socket: Connection Refused"

Feb 12, 2010

I'm trying to run Interhack (spoiled variant of Nethack) for local game. Is looking through settings I saw that:

[Code]....

When I try to start it with ih_server option it gives me that error: Code: Can't access() script Could not create socket: Connection refused I think my problem is closed port: Code: nc localhost 9999 localhost [127.0.0.1] 9999 (?) : Connection refused How do I fix this?

View 2 Replies View Related

Networking :: Multiple FTP Upload Socket Error "Connection Reset By Peer: Socket Write"

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

Fedora Networking :: Any Other Way I Could Remote Access PC?

Jun 12, 2009

My company blocked port 22/23 for telnet and SSH which would have been quite nice to access my box at home.I found a page on the net (URL...) which works perfectly fine, but due a demo version stops after 20 seconds.Does anybody know a similar page or any other way I could remote access my PC?

View 3 Replies View Related

Networking :: Can't Get Remote Desktop Access

Feb 23, 2011

my g/f was able to access her jobs computers from home in Windows. she'd go start->program->access->connect to remote desktop... (or something like that) in any event, i've found some programs in Fedora 14 that say they'd do the same, however i can't get it to work. in "remote desktop viewer" i'm trying to use 'VNC' protocol,and trying to put the ip in the first of the "Host" lines.

now, there might be another issue, is it possible she need more info than the ones she got in order to use LINUX remote desktop? she has (what she has written down as) Computer # 111.111.111.11 and then ';' and 4 additional numbers, so (for the sake of the example) computer#: 111.111.111.11;2222 she has a 'username' and a 'password'.

View 1 Replies View Related

Fedora Networking :: Can't Access Remote Desktop

Jul 16, 2010

New Fedora 13 Install. I have Remote Desktop Enabled. I can access the machine from itself but not others on the network. I stopped the firewall, that did not work. I looked in hosts.allow and hosts.deny, no entries there. The vino server is running. There is nothing in /varlog/messages, dmesg or /var/log/secure, at least nothing I could find related to vino. What else can I check? The conf file in my home folder looks exactly like one on another machine where it is working. forgot to add the message I get when I try it from a remote machine is "The connection to host 192.168.1.100 was closed". So it appears something is actively rejecting the login.

View 6 Replies View Related

Fedora Networking :: Remote Access To Folders?

Jan 10, 2011

We have a fedora 10 server that the company connects to with other computers in the office. The file everyone access, public_share has no restrictions to the people that use it. We have another file, art_share that is password protected and everytime someone wants to access it they must login with it, but there are only 3 people out of the 15 that need to access it. Everyone needs to access public_share at some time.

My question is: is there a way to limit the permission for certain remote users to public_share so that they cannot write or execute, but at the same time allowing others full permission? I tried to do use chmod, but then it changes everyone's permission (I assume because of the remote access).

View 9 Replies View Related

Ubuntu Networking :: Remote Web Server Access?

Sep 7, 2010

I have installed Ubuntu Server (lamp+openssh) on a laptop in order to use it as a testing web server for my projects. After configuring it I've also installed the GUI to make things easier as I'm not very proficient using just the command line.

I'm using the wireless connection on the laptop to communicate with the router and my main desktop (Windows). I've assigned it a static local IP (192.168.1.99) in order to be able to access the sites on my web server from my desktop, and everything works fine.

Now comes my problem: I need to be able to access those local sites from a remote location (outside of my local network) as well. How can I do that?

View 4 Replies View Related

Ubuntu Networking :: Remote Desktop Access From Outside LAN?

Mar 13, 2011

I just set up Remmina the other day to be able to access my desktop remotely. However, I can only do this when I am connected to my home network. Is there a way to set up Remmina so that I can connect to my desktop remotely from outside my home network?

View 4 Replies View Related

Ubuntu Networking :: Remote Access To Server?

Mar 29, 2011

We have installed Ubuntu Server 10.04 LTS for file share (Samba) at our local network.

I want to access my local server (Local IP 192.168.1.200) via internet from remote location. I have already installed SSH on our ubuntu server. I understands that using "Putty" we can access our server. Furhter, our Internet IP is dynamic (which is not an issue for us).

View 3 Replies View Related

Ubuntu Networking :: Remote Access With Dynamic IP?

Jun 28, 2011

I am looking for a way to be able to access my PC from a remote place. The problem is that I have a dynamic IP. I have registered at dyndns and have found settings in the router to 'Activate Dynamic DNS' and then you supply your dyndns address, password and tell it to update the WAN ip address automatically. This works, however only internally and only to the router as opposed to my PC I am not interestes in accessing the router to configure that remotely, only accessing my own PC.

Is this something I can accomplish with:
A ZyXEL P-660R-D1 router
A dynamic WAN IP address
A PC connected to the router
A static IP address for my PC

View 5 Replies View Related

Networking :: Secure Remote Desktop Access?

Feb 7, 2010

They are running Kubuntu. How to access their desktop from my home or office using Internet. Logically I remembered about kfrb and X11-vnc. But both of them need some approach to provide security. I'd like if someone could give me some pieces of advice on choosing the simplest and better approach:

To secure kfrb or x11-vnc is simpler or better to mount a vpn or to use an ssh tunnel? Is there any other solution? My pearents ISP use DHCP, so I think it would require some service like dyndns or similar...

View 2 Replies View Related

Networking :: Remote Access To LAN When Public IP Is Dynamic?

Feb 4, 2010

Is it possible to provide remote Windows users access to a LAN via the Internet when the LAN itself is connected to the Internet via a SOHO router that is assigned an IP address dynamically? An LQ thread from 2004 includes a suggestion to use VPN and DynDNS.com. Is that still a good solution? Are there any security issues?

Assuming:VPN is a good choice. DynDNS.com or similar can be used to give remote clients the public IP address of the SOHO router. the SOHO router is configured to forward VPN traffic to a Linux system acting as the VPN gateway. then, for a LAN of ~20 IP nodes and less than 5 simultaneous remote clients, are there any other VPN server software solutions to consider other than OpenVPN, Openswan and strongswan?

View 2 Replies View Related

Ubuntu Networking :: Remote Desktop Access Refused

Feb 17, 2010

I have 4 boxes on a local network: 2 with XP only, 1 with Ubuntu 9.10 only, and 1 with both. All boxes can share folders, set up with share-admin instead of using Nautilus right-click properties for each folder. I can see and control the remote desktops on all boxes, to all other boxes, from all other boxes,with one exception: I can only access the XP desktop on the dual boot box, not the Ubuntu desktop. When I try I get: "Connection to host 192.168.1.102 was closed." I am refused access to the Ubuntu desktop in this manner from both the other Ubuntu machine, and from both XP machines.

My setups are basically plain vanilla with routine installs of Ubuntu 9.10. On the XP machines I am using TightVNC on the XP machines to view both other XP desktops, and the Ubuntu desktop that is accessible. On both Ubuntu setups I am using (I suppose) vino and vinagre, and have completely re-installed what I think is the relevant software. There is no firewall running on the Ubuntu dual boot, when I check ufw. For reasons I cannot determine the inaccessible Ubuntu desktop is not providing its own address but instead in the Remote Desktop config dialogue it identifies itself as 27.0.0.1 which I think is the loopback id. I know so little about this sort of networking that I am not giving all relevant info, but I still thought I'd try.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved