Ubuntu Networking :: Windows Socket Connection ?
Mar 17, 2010
I am trying to connect with Winsock Windows sockets from a PC running Windows XP with a utility program that enables a dialogue over sockets. I have the listener running on Ubuntu on Port 6330. I can telnet to the listener and interact from both the Ubuntu desktop and the XP PC. But my utility program using Winsock is unable to connect. I have no firewalls impeding this. Maybe there is a better vehicle than the Windows Winsock.dll? I dont need network file access, just TCP ports/.sockets.
View 1 Replies
ADVERTISEMENT
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
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
Dec 7, 2010
Anyone knows the difference between a socket and TCP connection for connecting to an external system?
View 1 Replies
View Related
Mar 7, 2011
I'm running Ubuntu 10.10. I have a problem with any client side network communication from any java based program/application. I've tried to run the following code:
Code:
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
Socket s = new Socket("ubuntuforums.org", 80);
System.out.println("1. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); start = System.currentTimeMillis();
s = new Socket("ubuntuforums.org", 80);
System.out.println("2. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); }
The result is the following:
Code:
1. connection created in 189.31 s
2. connection created in 0.085 s
I've tried both java-1.6.0-openjdk and java-6-sun-1.6.0.24 with almost the same results. During the extremely long 189 seconds, the processor is doing almost nothing (java thread has 0 %). I've tried also a wireshark to check what is going on, but the first packet was released after those 189 seconds. There is nothing in log files, I have no exceptions or errors, and the connections work (after the first long delay) just fine.
View 2 Replies
View Related
Mar 9, 2010
Is there any command in Linux to kill a socket connection WITHOUT killing its parent application? For example, I have streaming server with several connected users and I want to close socket connection to one of them?
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
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
Sep 16, 2010
I'm writing a client-server program. There are more than 500 clients. I start a thread to process and response to each client and the processing needs some MySQL query. I'm looking for any possible hazards on my server!
1- Any limitation on "Maximum Simultaneous Socket Connection"?
2- Any limitation on using mysql?
3- As socket on Linux are file, Any limitation on number of sockets or threads?
I'm using a Linux server (Centos or Fedora or Ubuntu) and clients are both Linux and Windows.
View 2 Replies
View Related
Feb 20, 2010
I have the following problem. I want to find out connection between process and socket. When I type to the terminal the following command netstat -anpetu so I get the following output:
[Code]....
As you can see just some connection have assign PID/Programme. How can I find out Program of this socket without PID/programme. like this 0.0.0.0:52472? Certainly I know that some port are well-known but there are a lot of unknown ports(like 8307 3350 and so on).
View 3 Replies
View Related
Dec 8, 2010
figure out this error?
Code:
kradalby@hpcompaq6530b-laptop ~/.ssh $ ssh -vvv -p 110 kradalby@dfekt.no
OpenSSH_5.5p1 Debian-5+b1, OpenSSL 0.9.8o 01 Jun 2010
[code]....
View 3 Replies
View Related
Jan 16, 2011
I just want to use Internet Connection Sharing (ICS) to connect to the internet. I have done a massive amount of troubleshooting, but some of it seems to contradict itself, and the only two things that I know for sure are that it used to work, and that my Ethernet cable is not the problem. When I use Terminal utilities like ifup and dhclient it seems that it can not determine IP information, but when I try to put it in manually, the "Apply" button grays out right after I finish typing it in. When I try to connect normally, in KDE or GNOME, the icon acts like it's connecting, then instead of having the connected icon, I receive a notification that "the network has been disconnected", and it goes back to the disconnected icon.
Oh, and by the way, I know that I could probably find a workaround, but I have limited resources, and this used to work. The Linux is a Dell desktop with Fedora 12 and the Windows is a Windows 7 HP laptop.EDIT: I hope that I didn't mess something up, but I accidentally used system-network-config to try putting in the IP address there, and ended up changing it back to the original settings, but the computer is now calling it Auto Ethernet in the taskbar icon, although sudo iwconfig in the terminal still calls it eth0.
View 7 Replies
View Related
Feb 2, 2010
I have a Windows XP Professional desktop that I would like to remote connect to from my Ubuntu 9.10 laptop. I would like to connect in such a way that the current user of the XP machine doesn't get logged off when I connect. I have googled this subject and have been unable to find this exact subject. I am fairly comfortable using the terminal although I am still learning it. I have heard FreeNX is a good program but from what I can tell it's only used to connect from Windows to Ubuntu. Is this correct? I would also like to remote connect from the above mentioned laptop to the XP machine while at work over the internet if that's possible.
View 1 Replies
View Related
Jul 20, 2010
I have 2 computers, one running Windows 7 (and connected to my router wirelessly) and another running the latest Ubuntu Server version and I am just wondering, since I've already got the windows machine to share the internet connection via their LAN connection, how would I get the Ubuntu to use it?
View 8 Replies
View Related
Apr 23, 2011
At my grandparents house, there is a Wi-Fi network that we can (sometimes) connect to. However, it lately hasn't been allowing our Win 7 laptops to connect. It does let my Wii and my iPod Touch connect with no problems. I've tried restarting, but that doesn't work. We don't have access to the router, so we can't reset that. I would really like this fixed since mobile Safari is not the best browser in the world and WiiNet is even worse..
Note: Neither of the laptops are mine (one is my sister's and one is my parents'). I would never allow a computer of mine to use such an operating system.
View 2 Replies
View Related
Feb 1, 2010
Trying to set up a VPN connection from with Virtual Windows XP (virtualbox) and the network shows verifying user name and password but then times out and give me a message that it could not connect to the serve.
Since I could connect from a Windows system at another location, I assume there is something in Ubuntu that is preventing the connection so I tried to set up a VPN connection in Ubuntu.
I installed "network-manager-pptp" and "pptp-linux" as mentioned in the documentation but when I try to create a VPN connection using [main menu]>[System]>[Preferences]>[network connections] the VPN tab has a padlock on it. I set up the VPN but did not put a DOMAIN name on it because the server does not have a DOMAIN and it did not appear to be necessary on the dedicated Windows machine.
In spite of configuring the VPN connection, I cannot find the connection anywhere so I can see the server at the other end.
When I try to use [main menu]>[places]>[Connect to Server] using [windows share] and enter the IP number of the server, I get the message "Cannot display location smb:// {server IP address}"
And if anyone knows why the Virtual windows cannot connect.
View 1 Replies
View Related
Feb 2, 2010
From the command shell, how do I get to a network connected drive?I do a "Connect to Server" -> "Windows share" and connect to one of my Windows XP systems. Everything is fine. But how do I get to that drive from the command line prompt so I can do terminal commands or open files programmatically (hmmm is that spelled right?) Thus far, I see no way to do it.
View 5 Replies
View Related
May 4, 2010
i have an evdo connection with which i connect to the internet. i have been trying to share this connection for quite a few days from my lucid machine to a windows 7 pc but have failed. i have tried dhcp3-server, firestarter, network manager's built in capabilities but have failed! today i manually configured da windows 7 pc to an ip address within da range which network manager ws assigning when 'shared to other computers' ws selected and it worked! Now da question is how do i do it automatically? dhcp3-server never starts, it always fails with the error 'not configured to listen' or sumthng like it! Plus i want the wireless of my laptop to make an ad hoc connection to my mobile fone, which is also no possible...i think its some problem with da dhcp server.
View 1 Replies
View Related
Jun 20, 2010
I'm trying to share the internet connection of my Windows XP Virtual Machine (virtualbox) to Ubuntu. I know it sounds weird, but what happens is that i'm using a 3G modem to connect to the internet and 3G connections are still very unstable with ubuntu's network manager. Fortunately, the modem works a lot better with my Virtual Machine. I have already set up a "host only" network between my Windows XP guest and my Ubuntu host and i can they can ping each other but i still can't share the connection of my virtual machine. I already selected "share this connection" on win xp but i think i still have to configure something on ubuntu for it to work. The interface Ubuntu uses is vboxnet0 (not eth0).
This is the last thing to do before i can get rid of my Windows XP partition
View 3 Replies
View Related
Nov 18, 2010
configuring Internet Connection Sharing from my Ubuntu 10.10 machine to a Windows XP machine. I've seen How To's but they didn't work, yet.
The Ubuntu machine connects to the Internet through a DSL USB modem that required packages not provided with the distribution, and specific instructions to configure it; so getting Internet working alone was difficult. As a result, I don't even use Network Manager, rather connect using the command pppoe-start. The machine is connected to the Windows PC through a simple cable, through the Ethernet card.
Some tutorials I've seen on ICS are for machines with two Ethernet cards, or for wireless connections; but I've seen none for a USB modem. However I once found one, years ago, and it worked, but I couldn't find it now. It was using iptables, and I didn't really understand what I was doing, but it worked. But then I had to format the disk, and now I can't find a way to get it working again.
View 8 Replies
View Related
Jan 3, 2011
I bought a new Laptop 2 week ago. It works well, but internet connection ist very slow. I use cable internet speed 25Mbit/s, normal with my old Laptop (Window xp) I can DL with speeds ca.1 Mbit/s but with this new ca. 15 kbit/s (same file). too much different!!! If anyone know, how to troubleshoot this problem, please tell me. And i get a advice that i should crate a new connection using the "workgroup" model instead. I've tried to do but failed. Who knows "how to" please explain it for me.
View 3 Replies
View Related
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
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
Feb 1, 2010
I have been trying off and on for weeks to share my Internet connection with a Windows XP client (netbook). While I can ping back and forth between the two machines, in the form of a ping test, I can't get to the Internet from the client, no matter what I try.
My Ubuntu 9.10 desktop (host) has two NICs, eth0 and eth1. eth0 connects to the Internet. eth1 goes to the Windows XP client. Regardless of whether I use an Ethernet crossover cable or a standard cable, I can get the two machines to talk to each other, but no further.
Things I already tried:
-Tried setting eth1 to "shared" mode in NetworkManager on the host. I set the Win XP machine to automatically acquire an address & DNS. Didn't work.
-Manually configured the IP settings on both machines, like this:
client:
address 10.0.0.2
subnetmask 255.255.255.0
gateway 10.0.0.1
[Code]....
Despite all of the above, I still cannot share the host's Internet connection with the client. I don't understand where the client's traffic is going, and why I can't share the connection. As far as I know, I am not doing any sort of firewalling or blocking on the host, so there is no obvious reason that the client's traffic simply disappears. I just know that whenever I open a Web browser on the client, all I ever get is error messages.
I have had no issues setting up a shared connection when the host runs Windows XP, so I am pretty sure there is no broken hardware causing the problem. Why can't I share the connection under Ubuntu?
View 1 Replies
View Related
Mar 16, 2010
My friend is trying to share his clearwire connection with me using Windows ICS. Using network-manager or wicd, I am unable to connect to his share. I am able to connect unencrypted with iwconfig, to the ad-hoc network, and then use dhclient to gain ip address.
I am not able to connect to WPA encrypted share using network-manager or wicd. nm-applet crashes when trying to connect. I am attempting to setup wpa_supplicant, but haven't got it working yet.As usual, the wireless networking out of the box experience in Ubuntu doesn't work. This is extremely frustrating. If Ubunut's goals are to be the default desktop, then these guys need to get wifi that "Just Works"...
View 3 Replies
View Related
Apr 13, 2011
I have internet on my ubuntu machine (eth0) I am sharing with (eth1) My windows computers are getting IP addresses via DHCP from the Ubuntu Machine, and I can see (and use) samba/windows shares on all computers. Internet connection is not working on any of the windows computers.
I have eth1 set to "shared to other computers" under the IPv4 settings
View 2 Replies
View Related
May 15, 2011
i just got my xubuntu , and i'm pretty satisfied with it , i mean : it works ok for my very old system (512mb ram , integrated video card , pentium4 procesor 478 2.8 ghz) forced to use it , because i had to take my motherboard to warranty .... anyway , i just wanted to know how can i connect my pc ( xubuntu ) with another laptop ( i would like to have file transfer , and why not control over the desktop from my laptop , or control my laptop from my pc , i think it is called remote desktop ) . My network connection is through a modem , that is connected to a router from which goes a lan cable to my pc (xubuntu ) and my laptop is wireless connected to the router . My laptop is using windows 7.
View 2 Replies
View Related
Jun 2, 2010
I have created a MLPPP connection using pppd(s).My PPP config file is as follow code...
Now after connecting a TCP socket from peer entity, I am getting certain Window Overflow errors which means that request is greater than receiver's advertise windows size.The peer is not in Linux. On running wireshark I have found these windows size
PPPd= 1040 ;Peer=1000
For ethernet the connection made successfully.
Ethernet=6500 ; Peer=1000
Is there anyway, to increase windows size in case of PPP connections?
View 1 Replies
View Related
Jan 24, 2010
I used to have a PCi wireless card but decided to upgrade to a 802.11n device. I run the lshw -C network command and no output is shown for the usb dongle. I have installed ndiswrapper and it states the driver is installed, but a popup always appears stating that Ubuntu cannot recognise if the hardware is present, but once this is closed the remaining window shows the dongle is present. So Ubuntu (9.10 btw) can recognise the card is present in the windows driver window, but not in lshw -c network. Any ideas?
There are a number of posts about older Sweex products with different chipsets, but none seem to answer my query. NB my chipset is Ralink RT3070
View 1 Replies
View Related
Jan 25, 2010
Over the last several days, I've been trying like hell to share my (wired) Internet connection with a netbook, running Windows XP, attached via crossover cable to my desktop's extra NIC (eth0). The eth0 link is established, but I can't get to the Internet from the Windows XP machine.I can ping one machine from the other, but any bits sent from the Win XP netbook mysteriously disappear when trying to reach any website.
There is no firewall running on the Ubuntu machine as far as I know. Windows Firewall is likewise disabled on the Windows XP machine. The Ubuntu machine connects to the Internet through another wired NIC, eth1.In Windows XP parlance, what I am trying to do would be called "bridging," where eth0 and eth1 would be the two parts of the bridge. In fact I already made it work, with both the netbook and my desktop running Windows XP. It took about 5 minutes.I can't believe what a huge pain this has been in Ubuntu. I'm pretty much ready to give up. There seems to be no way to get an Ubuntu system and a Windows XP system to share an Internet connection.
View 5 Replies
View Related