Networking :: Receiveing The Data From Client?
Jul 9, 2010
i have server and client, my client is sending data of 100 bytes at a time but server side i am receiving 50 bytes once and in next iteration i am calling recv function for receiving remaining 50 bytes but the receive is blocked it doesn't reading any data? Does any body have a idea let me know
View 1 Replies
ADVERTISEMENT
Jun 29, 2010
shed some light on what I am doing. I am wondering if I just havehings back to front.Server (MESH):Fedora 13Firewall ports open tcp 22(ssh), tcp 873(rsync)sshd service started
View 5 Replies
View Related
Apr 15, 2010
I am trying to redirect connection to port 8980 to execute a telnet command to a local machine
by issuing the following command :
In Server 1 :
socat TCP-LISTEN:8980,fork EXEC:/myscript,reuseaddr
My script contains
#!/bin/bash
telnet 192.168.20.12 //local Server 2
I am sending Binary data from the client to Server 2 via Server 1. So it happens that I have some characters in Hex translated to special characters in ASCII like open brackets or Commas etc.. and that closed the socket between the two machines.
View 2 Replies
View Related
Mar 9, 2011
I am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.
View 7 Replies
View Related
Jan 1, 2010
Is there a way to download any kind of files, if i have the url, with a bittorrent client? I've seen this feature in Bit-comment and i like it. So is there any similar thing for linux? Update: Im not asking how to download bittorrnent files, what i want is to download any file (that can be downloaded within any webbrowser) with a bittorrent client.
View 1 Replies
View Related
Jan 6, 2011
trying to create a "local network" by directly connecting an IBM Thinkpad with Debian Linux installed on it to an Alix computer running Voyager Linux. I'm following a "how to" I found to create a music server, hence the requirement. My issue is I can't get a static IP address to be configured on the Debian machine.I've trawled the net and have found the instructions about editing the /etc/network/interfaces and have tried to do this. First I tried to get DHCP working so I could connect the Debian machine to the net and this proved successful. I edited the interfaces file to look as follows:
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Then I tried adding a static IP address to the machine. As this is a network purely between two machines I made up the IP addres and used 192.168.0.1 and used a NetMask calculator to give me a NetMask of 255.255.255.254 (I told the calculator there would be 2 machines on the network). I then edited the interfaces file as follows:
# The loopback network interface
auto lo
iface lo inet loopback
[code]....
I re-booted the machine (ifdown eth0 followed by ifup eth0 keeps saying that eth0 hasn't been configured - a problem there that I don't understand), but during boot up time it failed to assign the Static IP address to eth0 and made me go into SU mode. To fix it I simply replaced the interface file with the static IP inputs with the file that had the DHCP entries (I'd made a copy of the DHCP file), and re-started the machine. Everthing came up fine. So the first question is how do I get a static IP address to be assigned to eth0 such that whenever I shut down and restart the machine the static IP address is always loaded?
The second question is around creating the network via the cross over cable. From what I've found via Google, all I should have to do is create a static IP address on the Debian machine and a static IP address on the Voyager machine. Once they're connected by the cross over cable they should see each other. Is that correct, or do I have to do anything else?
View 2 Replies
View Related
Feb 9, 2010
i have installed nfs server on my redhat machine.when i want to mount shared data from client(suse)machine the following error occur. "mount.nfs: mount to NFS server '10.3.31.146:/home/usbtest' failed: System Error: No route to host" both machines ping each other successfully.
View 1 Replies
View Related
Feb 16, 2011
If you have a proxy and receive/send data from/to both the client and the server,is there a way to test what part has data to send(client or server) ?
View 1 Replies
View Related
Mar 5, 2010
I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port
Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)
[code]...
View 5 Replies
View Related
May 20, 2009
I have the following problem:I have to networks in remote places.I have an opnvpn client in one network that connects to the the router (openvpn server).My question is,can i connect the network where the openvpn client is,throught the computer with the client to the other network.If yes,how? (please make it an idiot proof anwser because i have limited knowledge about iptables). I was thinking like forwarding (the router in the network with the openvpn client is also firewalling with iptables) the request of the ip class of the openvpn network to the computer with the client,which masquarades the interface
View 2 Replies
View Related
May 26, 2011
I 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 Related
Nov 25, 2009
Is there a good terminal services client available I can connect to my Windows boxes from Fedora12? I am willing to pay for a commercial license if there is a good one
View 7 Replies
View Related
Oct 16, 2010
I want to connect two computers using ssh. One is at work, behind a firewall (which I have no access on it), and the other is mine, at home. I want to connect, from home, the one at work at night.
Obviously, the computer at work should be the server, and mine, the client. The point is that the firewall does not allow it, maybe blocking any SYN bit coming from outside of work.
Since I can establish communication when the client is at work and the server is at home, I can make the computer at work try connection periodically, and when I want, take control of the client. Do you know any way of doing that with ssh?
View 1 Replies
View Related
Oct 22, 2010
Is there a vpn client out there that:
1) doesn't require a group password
2) doesn't require a cert
3) can work with cisco any connect
the vpn server admin is being pretty obstinate and uncommunicative
is there such a program?
View 4 Replies
View Related
Nov 23, 2010
I connect to my corporate LAN(dhcp) using a wired connection and also connect to a WLAN(dhcp) without various constraints applied by the wired connection. In short my wired connection blocks outbound ssh traffic to my server at home. My WLAN connection is pretty lax so ssh connections to my home webserver can be made using the wireless connection.Can I route ssh to that particular ip via my wireless connection?
View 1 Replies
View Related
Nov 26, 2010
Calculating the available bandwidth methods IGI/PTR,PATHLOAD,SLOPS,PACKET PAIR...
I gone through above methodogies ,when i finish one methods(IGI/PTR) i came to know,one application should run in client side and another application should run in server side (i.e,) Internet Service Provider side,
In IGI/PTR method ./ptr-client.c & ./ptr-server.c is there .,if we want available bandwidth,I Should run ./ptr-client.c (in myside)correspondingly ./ptr-server.c then only we wil get a availble bandwidth...
My need is without run any application on the server side ./ptr-server.c like that,but I should develop the application only on client side (in my routerside based on linux)..
1:whether it is possible to get the available bandwidth run application in client side only?.if possible. how i implement the code in client side( only )for getting the available bandwidth ...whether any source code is available?...
I dont want to test the speedtest.in (in GUI )
View 1 Replies
View Related
Nov 23, 2010
i'm unable to see some musicvideos on videos in germany trough copyright restrictions. i can see these videos by using a tunnelservice, but it isn't very comfortable.
in that case, i have to copy the url and paste it at the end of the tunnelservice url. a lot of stupid work.
my problem is, that i haven't enough experience to automate these actions.
i think, that i have to modify the url befor it goes to the server. there must be somewhere in the osi stack a place where i simply can modify that url with a regex but i don't know where
View 4 Replies
View Related
Nov 12, 2010
I have an Ubuntu 10.10 server and client. The server is stable, but the client crashes when writing to an nfs mount.The server has a software RAID, and I have tried every combination I can think of for mounting the share (udp, tcp, write size, nfs, nfs4 and so forth).
I don't have any security on the share, and it only appears to happen when writing to the share (so far). It happens fairly consistently when writing large files (over one GB). The copy starts to stall/start, then the whole interface freezes. I can't drop to other levels (ctrl-alt-f1), but there is still disk activity, and I had it beep at me after a freeze when I clicked several keys....
View 1 Replies
View Related
Oct 4, 2009
I inherited this shop. NIS is working fine... and has for years with one exception.One user named jpeters (not really ... just made that up) couldn't ssh into the network but she only had problems ssh'ing into one server named frodo (nis client). Other users were / are able to ssh into frodo so I know the daemon is running. (I saw the other thread that sounds exactly like my problem - but the solution didn't make sense because I don't have any other domains. Oh and I do *not* have sldap running anywhere.)When jpeters ssh'd into frodo it failed: "permission denied."Jpeters can, however, ssh into all the other NIS client servers. On the problem box, frodo, if I: # ypmatch jpeters passwd frodo returns the info stored on the NIS Master (gandalf). I verified this from several other servers too. All are pointing to the NIS master.
Then I discover that jpeters also has a local user account on frodo. I deleted (userdel) her from the local users on frodo. While this *did* successfully remove her record from frodo's local /etc/passwd file it didn't remover her from the /etc/group
Question 1: Shouldn't userdel have removed her group entry?
So I then used vi to manually remover her from frodo's /etc/group.But, still, she couldn't ssh into frodo and I'm tempted to tell her to STOP trying to ssh into frodo ..., but then I noticed that, unlike the users that are successful at ssh'ing into frodo, user jpeters belonged to several groups including "wheel." So I changed this in the /etc/groups on the NIS master server so she no longer belongs to the wheel group.She still could't ssh into frodo though. I then ssh'd into frodo as root. and as root I su'd to jpeters:
# su - jpeters
# yppasswd
but now something is different - I'm jpeters now and I when I entered jpeters password to authenticate the password request change, NIS *did* recognized her password!
I then changed the password and the changes were successful. jpeters can now ssh from all the servers including frodo.
Question 2: Do you think that taking jpeters out of the wheel group resolved the problem? Or did I just forget to make or restart or rebind something...
In trying to troubleshoot this problem I've learned a great deal but I'm also confused because as I said, NIS is working yet many of the things that people in the forum said to check aren't there for example:
# ypcat ypservers returns nothing
Question 3) how can this work if ypcat servers returns nothing?
Question 4) why does my passwd file on the nis server contain encrypted password for some users? Most have x in the password field but a few have gobbledgook. All the users that I have personally added appear this way. What am I doing wrong? And how do I fix it?
View 1 Replies
View Related
Apr 17, 2010
why tun0 on my client is not getting an ip address?
client config:
Code:
client
dev tun
proto udp
remote 66.219.29.99 1194
resolv-retry infinite
[code]....
View 2 Replies
View Related
Jun 23, 2010
I have 2 laptops connected by a lan cable - from 1 laptop network card to the other. the first laptop is an Asus eeePc that runs a modified version of debian. this one is connected to the internet and i simply want the other one to connect to the internet via the lan cable. the "server" has 2 connections: 1. one for connecting to the internet via a dialup mobile connection (i checked and this connection is shared) 2. the 2nd connection: "Local Area Connection" defined this way:
IP address: 192.168.0.4
subnet mask: 255.255.255.0
+ it is also marked as 'shared'
that's all, no Gateway/DNS/Wins defined
[code]...
my problem is that the client (192.168.0.3) cannot open web pages even if it sees just fine the server's files.
View 3 Replies
View Related
Sep 15, 2009
This is the first one of probably many posts as I am new to Fedora having lots of questions. This one is about the openvpn client which is used by me to connect to my company network. Thanks to the Fedora FAQ it was easy for me to set up the client and establish a connection. There is just one problem every time I open a connection I am disconnected from my local Internet. I was using openvpn on my Windows XP PC before and there was no problem keeping two Network connections, the (W)LAN and the vpn tunnel. Does anyone know how to solve this? I am utilizing the latest Fedora 11 release and configured openvpn client via the Network Manager GUI.
View 2 Replies
View Related
Nov 26, 2010
Calculating the available bandwidth methods IGI/PTR,PATHLOAD,SLOPS,PACKET PAIR...I gone through above methodogies ,when i finish one methods(IGI/PTR) i came to know,one application should run in client side and another application should run in server side (i.e,) Internet Service Provider side,In IGI/PTR method ./ptr-client.c & ./ptr-server.c is there .,if we want available bandwidth,I Should run ./ptr-client.c (in myside)correspondingly ./ptr-server.c then only we wil get a availble bandwidth...My need is without run any application on the server side ./ptr-server.c like that,but I should develop the application only on client side (in my routerside based on linux).. 1:whether it is possible to get the available bandwidth run application in client side only?.if possiblehow i implement the code in client side( only )for getting the available bandwidth ...whether any source code is available?
View 2 Replies
View Related
Apr 11, 2010
I am using a core ftp client on windows. Is there any similar software available on Ubuntu so that I can completely switch to Ubuntu.
View 1 Replies
View Related
May 21, 2010
I have been used NX client on windows 7 connected to ubuntu with NX client/node/server with no issues. The matter started when I have formatted Ubuntu and reinstalled NX, from that NX connects but shows a key error as follows:
NX> 203 NXSSH running with pid: 4328
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
[code]....
View 7 Replies
View Related
May 26, 2010
I would like to be able to mount a share served by my mac os X machine(10.6.1). I have read the Ubuntu community doc on Ubuntu samba clients.It didn't say what to do when using dynamic LAN I.Ps.I understand the way to go is to use avahi on the client side(Ubuntu) and Bonjour on the server side(mac os 10.6.1).I can't find anything about how this is done.What do i need to do to set up the client side(Ubuntu) to use avahi with SAMBA?.Because in the Ubuntu community doc it just referenced /etc/hosts, which is for static I.Ps.So i'm assuming that SAMBA on Ubuntu doesn't use avahi by default.All i need to know is how to set up the client side of SAMBA on Ubuntu when i'm using dynamic LAN I.Ps.
View 5 Replies
View Related
Sep 10, 2010
Ok so i have a server in which i have setup dyndns setup so that i can use an address such as example.com to connect to my server. The server has openssh installed and it is configured properly.
What I can do:
Code:
Connect to server (locally) from linux terminal
Connect to server (locally) from windows putty client
Connect to server (Over Internet) from windows putty client
What I can't do
[Code]...
View 3 Replies
View Related
Oct 1, 2010
I am trying to connect to an existing VPN server that I have been using for years now. I am moving my develpment environment over to a Ubuntu box and I must have openvpn working in order to access SVN. It has been a few years since I have been setting up linux boxes. And networking is a soft spot for me. But
The server has been running without problem for a LONG time. A windows computer I have been using connects to it fine and I can access the network on this machine. I am setting up a new computer, but when trying to connect openvpn starts the initialization sequence completes but I cannot ping the network I am trying to connect to.
I use a second VPN connection to connect to an alternative network and it works fine. The difference between these two is that the working vpn connection is a routed IP tunnel and the one that is not working is a bridged connection.
The VPN that is working on this box brings up tun0 while the bridged connection connects but does not bring up a network tun device. The server logs look normal, it just looks like the client is not setting itself up to use the network once connected. (The key/cert pair work find when on a windows box) Just not on this new ubuntu build.
My current client config
Quote:
cert eric@home.crt
key eric@home.key
client
dev tap
[Code]....
The server is using tap, as well as the working windows client uses "dev tap"
It has been a long time since I have been maintaining linux boxes but its coming back slowly.
Do I have to bring a device up manually ?
View 6 Replies
View Related
Oct 14, 2010
I'm using a Kubuntu 10.10 Client Machine which mounts NFS shares form a Kubuntu 10.04 Server.The server seems to work smoothly but the client causes huge problems since I upgraded to 10.10 (before I used 8.04 which worked withouth problems).My problems are, that in various situations the use of the NFS shares causes the Client to freeze completely!Examples:Unzipping a big file from the NFS server to the NFS server via the client -> always immediate freeze (after some seconds)Transfering big files from one NFS folder to another -> mostly immediate freeze (after some seconds)Viewing a movie which is on the NFS server -> sometimes freeze after variably amounts of timeLetting the Strigi-Indexer index files on the NFS shares -> mostly freeze after a short whileIt seems that everything that puts some load (high data transfer) on NFS immediatly locks up the whole client.
View 5 Replies
View Related
Nov 14, 2010
I have a wireless router situated in another room. I am able to access this router (and consequently the internet) through a Windows laptop that has a wireless card in it. However, my other laptop that has Ubuntu 10.10 installed on it, doesn't seem to have a wireless card in it, and I have confirmed this by running the commands
Code:
lspci
and
Code:
iwlist scan
I briefly was able to share a folder in my Windows machine, and access it through my Ubuntu machine, after connecting both laptops with a cross-over cable. However, I can't even ping the Windows machine from my Ubuntu machine anymore, after trying to configure the IP addresses. I think I screwed it up.
Also, although this is not an Ubuntu issue, I have a weird Windows problem, where I can't access the Internet when both wireless and wired ethernet controllers are active at the same time. It would be a bonus if you could solve this problem too for me. I was surfing online for a solution to this problem for quite some time, but I was unable to comprehensively understand and implement what I browsed through. Also, some of the guides, like for example, that on configuring Samba, seem to be outdated, as the terminal tells me something like the package (that was required to be installed by the guides through sudo apt-get install) has been superceded. Hence I post here for clear, concise and easy-to-understand help from you gurus. It would be great if I could achieve the end result of being able to access the internet on my Ubuntu machine (through the Windows one).
View 9 Replies
View Related