Ubuntu Networking :: Java Socket Connection Created In More Than 3 Minutes

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


ADVERTISEMENT

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 :: 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 :: Java Socket Listener Not Working?

Sep 26, 2010

I have forwarded both port 22 and 9000 on my router. I can connect on 22 and remotely login into the machine. The problem when I start my java listener program which is listening on 9000 it cant not establish any connection. I have even add this into the iptables too -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT. I have disabled the SELINUX too. What else must I do to make it work any suggestion please?

View 6 Replies View Related

Server :: Socket Connections / Socket And TCP Connection For Connecting To An External System?

Dec 7, 2010

Anyone knows the difference between a socket and TCP connection for connecting to an external system?

View 1 Replies View Related

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

Ubuntu Networking :: Lose Wireless Connection After 10 Minutes?

Dec 5, 2010

I have a Acer Aspire 7535-5020 laptop with a Atheros AR5B91 wireless adapter & lose my connection after about 10 minutes.The only way to reconnect is by rebooting.I read in another thread that installing the linux-backports-modules-karmic would solve the problem.However when I try to install it I get the message, Error Dependency is notsatisfiable:Linux-backports-Modules-2.6.31-22 generic.

View 4 Replies View Related

Ubuntu Networking :: Wireless Connection Drops Out After 15 Minutes?

Jun 13, 2011

Having struggled to get the wireless connection at least working I find it drops out after 15 minutes or so. When I check for wireless connections I can see none at all and the "Disable/Enable wireless conncection" has disappeared, the Network one is still there. I get an auto reconnection if I reboot and all is well for another 15 minutes. Is there any way i can recover the situation without a reboot? I am trying to install the hplip-3.11.5 driver for my new wireless printer,the program take a while to install and by the time it has started looking for the printer the connection has dropped out. I can't be sure but I don't think it was dropping out before I connected the printer using my wired pc. All good fun but I'd like to get it sorted so I can get the engine back in my motorbike, the sort of technology I prefer!

View 3 Replies View Related

Fedora Networking :: 14 - Connection To Wlan Is Cut After About 5 Minutes?

Jan 10, 2011

I installed Fedora 14 yesterday via the installation DVD with 3,3 GB. Everything worked fine and when I connected to my wlan and entered the WEP key I got access to the internet. But after about 5 minutes, to connection just got cut and I was again asked for the WEP passkey. But when I entered it this time, the connection failed and I was just asked again (with the same key entered, it even got it saved from last time). As you can think, this is quite annoying, since the time I have internet is not even enough to get some updates done.

Ah, and by the way: The time I have internet it just is unbelievably slow. On my Windows partation, I don't have this problem. I do have a small hint what might be the problem: When I was using Ubuntu, I always had a similar problem, but it did not even connect to my wlan once. The solution was to blacklist some driver, but since I don't know if this might be the problem on Fedora too and if the drivers are the same as on Ubuntu and since I really have no idea about the syntax of the terminal here, I was not daring to try this out.

View 3 Replies View Related

Networking :: OpenSwan VPN Drops Connection After 5 To 15 Minutes

Feb 18, 2011

Hello, I've installed OpenSwan with xl2tpd on my server, and set it up for roadwarriors connecting using certificates.

My server is Debian 5.0.8, I am running xl2tpd 1.2.0, and Openswan IPsec 2.4.12, my clients are all Windows, and I am testing my setup on a Windows 7 client.

I have no problem connecting to the server, but after some time the connection drops. I removed the idle option from the ppp config but it does not make any difference.

Even when I create constant traffic with ping -t the connection drops also.

I have no problems reconnecting right away.

I have been hacking at this for a couple of days, reading every post I can find, but I have not found a solution to my problem.

Here are my configs and logs:

CONFIG FILES:

/etc/ppp/option.l2tpd
-----------------------------
ms-dns 10.248.75.4
ms-wins 10.248.75.4
asyncmap 0
auth
crtscts

[Code]....

View 5 Replies View Related

Ubuntu Networking :: USB Wifi Adaptor Loses Connection Every Few Minutes

Apr 22, 2011

I just installed the Natty Beta and plugged in a Netgear WG111v3 USB wifi adapter. It is using the RTL8187B driver and worked out of the box. The problem it loses my connection every few minutes. Sometimes not for 10 or 15, sometimes like a minute or less. After it loses the connection, I have to uncheck "enable wireless" (which I assume is the equivalent of bringing down my wireless interface) and then check it again before it will let me reconnect. I don't want to try ndiswrapper because the card works great when it works, including monitor mode and packet injection!

View 3 Replies View Related

Ubuntu Networking :: Internet Connection Lost After 10 Minutes Surfing

Apr 23, 2011

I do have a problem with my internet connection at home, I've a Huawei router and ubuntu 10. When I connect to the internet whether wireless or wired I become able to surf the internet for less than 10 min then it cuts off! and to be able to surf it again I need to restart the whole system!

I used this command to restart the networking but in vain
Code:
sudo /etc/init.d/networking restart

On windows I do not face this problem with the same internet connection. I do not face it either when I'm using my campus wireless connections using ubuntu/windows!, so the problem is related to my home connection+ my OS.

View 2 Replies View Related

General :: How To Remove All Files That Created N Minutes Ago

Mar 4, 2010

I guess in most cases when extracting a tar achive ,we will get a directory with the same name as the archive file but different suffix. but in some unlucky case, as I met today, after extract a tar bar I find lots of files spread in the working directory, which is really nuisance.so what I want to learn from you is that how can I move thoes newly created files ? I know it should be some "find plus rm" fancy approch there, but I don't know exactly how.

View 3 Replies View Related

Networking :: Kill A Socket Connection WITHOUT Killing Its Parent Application?

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

Ubuntu Networking :: BSNL - ADSL Connection Not Stable / Disconnected After 3 Or 4 Minutes?

Apr 19, 2010

I am new ubuntu user . I installed - ubuntu desktop v9.10 32bit. I have BSNL (Indian Telephone service) broadband connection. In Windows 7, BSNL broadband connection is working fine.

Now in ububtu I try to establish ADSL connection using following command: "sudo pppoeconf". It open a console based wizard and I'm able to create the connection. But this connection is sustain hardly 4~3 minute, after that it is disconnected. So, Again i have go through the same process again and again.

View 5 Replies View Related

Ubuntu Networking :: Can't Connect Wireless Connection On Adhoc Created In Windows 7

Apr 12, 2011

I'm using Ubuntu 10.10 (Maverick Meerkat) on my HP laptop. My office desktop uses Windows 7 Home Edition. I created an adhoc connection on my desktop pc because I also want have an internet connection on my laptop. But Ubuntu seems do not detected the adhoc I created on my pc. I also tried to connect using the hidden wireless network and entering all the necessary access (wep key, etc...) but still didn't work. Is there any way that I could connect my Ubuntu on a adhoc? Is that possible?

View 2 Replies View Related

Fedora Networking :: Wireless Access - Connection Lost Within 3 Minutes

Apr 5, 2009

I have fedora 10 and am having problems with the wireless access. My computer uses the Realtek Semiconductor Corp. RTL8187B Wireless Adapter. It connects to the network, it gets an ip address and a broadcast address, but it loses connection within 3 min. I'm also new dealing with linux and fedora.

View 1 Replies View Related

Ubuntu Networking :: Dell 1545 - Wireless Connection Drops After A Couple Of Minutes?

Apr 10, 2010

I have a Dell 1545 laptop with ubuntu 9.1 32-bit installed (the 64-bit had a bug with the wireless drivers which is why I have not used it). Initially, the laptop worked well with the wireless (a sky router with WPA security) but now, the wireless signal drops after a couple of minutes of usage. I have to reboot the laptop or sometimes reboot the router as well to regain the wireless signal. I am using the Broadcom STA proprietary wireless driver.

I have an older dell inspiron 6400 as well with the same OS and driver and it works perfectly without any problems for hours / days.

View 9 Replies View Related

Ubuntu Networking :: Connection Stop Working With RTL8187 Wireless Adapter After Few Minutes

Feb 4, 2011

I buy a new usb network adapter (Through DX), when I try to use it in ubuntu or BackTrack4 Final it is working, and connecting networks even with WPA encryption. But after few minuts it stops working totally. It is showing that I'm connected to the AP but web sites do not respond.

Notes:
- I have another PCI Wireless adapter which works fine.

- The problematic adapter works great on windows.

- A driver CD came with it, including a linux driver which I wasn't succesfully installed.

- A BackTrack3 Disc came with it, claming by the instructions that the adapter will work with it. I didn't try it because i have backtrack 4 final.

It took me dozens of surfing the web hours, and too many restarts,

View 2 Replies View Related

Ubuntu Networking :: Wireless Connection - Takes Upward Of 10 Minutes And Over 20 Times Of Me Clicking 'Connect'

Jun 20, 2011

I have been having trouble with Ubuntu 11.04 when connecting to the Internet via Wireless Networking. It will connect, and has good speed once it connects, however it takes upward of 10 minutes and over 20 times of me clicking 'Connect'.

Is there a way to connect to a wireless network quicker? My network is unsecured and without a keyring. It is not only slow connecting to my network, but the network of other's.

lspci information:

View 2 Replies View Related

Networking :: Iptables Rate Limiting For Bridged Connection ( Kvm Created Bridge )?

Oct 27, 2010

I have a bridged network setup ifconfig -a gives following output

Code:
br0 Link encap:Ethernet HWaddr 00:26:b9:82:42:38
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150779 errors:0 dropped:0 overruns:0 frame:0

[Code]...

3) What are these vmnet1,vmnet2,vmnet3,vmne4 which I see above. I used kvm and virt-manager to create a bridged setup.

View 1 Replies View Related

Ubuntu Networking :: Loosing Connection After Few Minutes - Without Showing Any Sign Of Disconnection Except No Internet/skype/dropbox

Jul 15, 2010

I have an LG R-450 laptop with Ubuntu 10.04 installed in it. When I connect him to a network (either LAN or Wireless) it stays connected for a few minutes and then Just disconnects (without showing any sign of disconnection except no internet/skype/dropbox). Only way to renew connection is after startup. The network controller is SIS 191 Gigabit Ethernet adapter.

View 9 Replies View Related

Fedora Networking :: Worthless Wireless Connection \ Works Well For A Few Minutes Then Has A Period Of Inactivity - Then Slow?

Nov 24, 2009

I'm running Fedora 12 on an Acer Aspire One with KDE. The built-in wireless works without a problem EVERYWHERE except at work. It's a shared wireless connection using WPA/WPA2 security.I can connect but it's "hit-and-miss" if I can do anything with it. Somedays it works well for a few minutes then has a period of inactivity - then slow - randomly receives...It worked flawlessly when the computer was running Windows7 no one else has connectivity issues but I'm the only one using Linux.

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

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

Debian :: Ident2 Does Not Recognise Sockets Created By Java?

Feb 3, 2011

I was just wondering if anyone else has had problems getting Ident2 to recognise sockets created by java processes?I'm trying to get a java program to connect to a postgres server on the local machine. This works fine if I run the java program on a seperate box with an SSH port forward. When done this way, the ident server just reports the logged in SSH user as you'd expect.However as soon as I move the program to the box itself it all goes wrong and ident simply responds with:31095 , 5432 : ERROR : NO-USERWith a little more investigation I've found this applies to all java programs. Yet when I trace this through with netstat and ps, everything looks normal. Netstat reports the correct process id and this is ascociated with the correct user.

View 5 Replies View Related

Debian Configuration :: Cannot Open Java Socket - Port (9955) Closed

Feb 26, 2010

I have a java application that I wrote recently. It runs off port 9955. The application runs great on my mac server. When I installed it on my linux box i cant get to it from outside the box. A port scan shows the port as closed. I flushed my iptables, did not help. I can telnet into the app locally, from the server and it works great. I cannot telnet from outside the server. I have a reference to the application in /etc/services as a tcp port (which it is).

netstat shows it as listening
netstat --listen
tcp6 0 0 [::]: SimpleSocketTest [::]:* LISTEN
netstat -anp | grep 9955
tcp6 0 0 ::: 9955 :::* LISTEN 1484/java

View 4 Replies View Related

Ubuntu Servers :: Maximum Simultaneous Socket Connection?

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

Ubuntu :: Internet Connection Gets Disconnected Within 2-3 Minutes / Fix It?

Jan 28, 2009

I'm using Xubuntu and i have set up my DSL connection manually. I get disconnected from the Internet within 2-3 minutes. I have to again select eth0 from the network icon in the taskbar. it connects well but gets disconnected again and again. I don't face such problem when i use Win XP.
Any idea what might have gone wrong ?

View 4 Replies View Related

Debian :: Find Out Connection Between Process And Socket?

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







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