Networking :: Testing The Ethernet Connection Continuously?
Nov 2, 2009
My program is working. However, I would like to add in some features. Let see my code first
Code:
if (returnresult<=0)
{
printf("Connecting....
");
[code]....
When the ethernet network connected, it will go into the else loop at line no. 13. The system will send status and display the status at control panel screen. If at this point, the ethernet disconnected, it will go back to the if loop at line 1. The system will keep trying to connect to the network and keep loop the if loop until it is connected.
Question now is I need the system to test the connection too after going into the operation loop that is start from the line no. 47. If the system went into the for (int c=0;c<cCOL;c++), it will need to do all the operations as indicated by cCOL times before it exit that loop and go into the previous loop.
I need the system to detect connection everytime an operation is going to happen or ended and if there is no connection, it will trying to connect. Before it is connected, it will not continue the operations. I tried to put the function "Connect (szPort, szAddress)" into each loop. Yes, the operation stop everytime the network disconnected. However, it shows on control panel screen "New Connection...." everytime it execute the statement. In fact, the network never disconnected.
I tried to look at the Connect function code, it is as below, I cannot figure out any statement that can stop the appearance of that "New Connection...". It may be hidden at the library source code, it is too hard for a beginner to modify the library code.
Code:
int Connect (char *szPort, char *szAddress)
{
/* Set the remote port */
int port; /* port number */
[code]....
View 1 Replies
ADVERTISEMENT
Feb 20, 2010
I recently started attending University and there is a filesharing hub set up throughout the dorms. I want to connect to it using LinuxDC++ but the connection just continuously times out. I have used DC++ before on Windows and never had any troubles so I am thinking it is something to do with networking in Linux (I have only been using Ubuntu for about a month).
View 2 Replies
View Related
Apr 4, 2010
how to use a ethernet conenction(Marvell Yukon 88E8039 PCI-E Fast Ethernet Controller )in ubuntu...my internet requires user name and password ..can u even tell me how to config the user name and password
View 3 Replies
View Related
May 11, 2010
I installed 10.04 today, and I can't get any connection through the LAN. I've tried some stuff on my own, but I've been unsuccessful so far. It's not a hardware or connection issue, as it works perfectly fine in Windows 7. I haven't had this issue in any previous version of Ubuntu (or any Linux distro for that matter).The weirdest part is I booted from the installation CD as as LiveCD, and everything worked perfectly fine. It only stops working after I actually install it. Here's the results of ifconfig:
eth0 Link encap:Ethernet HWaddr 00:17:31:d8:d5:76
inet6 addr: fe80::217:31ff:fed8:d576/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
View 6 Replies
View Related
Feb 13, 2010
i shut down my ubuntu karmic for a bit. turned it back on after an hour or so and now i have no network connection. i checked all the obvious things like cords etc wife's computer is connected through the same router / modem and no probs here.i even replaced the card in mine.
View 9 Replies
View Related
May 3, 2010
I just upgraded to 10.04. I had wireless connection for 1 day and now nothing. No ethernet connection either. I CAN use both wireless and ethernet using my machine on Windows.....so the connection stuff does work. Here's the output of of the commands I got from the "sticky". I can't display the output as this forum puts it all together as one continuous sentence with no line break!
View 9 Replies
View Related
Jun 6, 2010
I'm trying to set up a shared Internet connection that had been broken by a previous update, I believe. Eth0 is connected to the Internet, whereas eth2 should be the connection going to my Roku set-top box. Under the nm-applet icon, an entry exists for "Auto eth0" for the first card, but there is nothing under the second card except "disconnected". How do I make a connection entry under my eth2 card so that I can share my Internet connection with my Roku box?
View 6 Replies
View Related
Jul 27, 2011
When I start my Ubuntu machine, it says "eth0 connection established". But i could not able to ping to other machines available in LAN & also to Internet.
View 1 Replies
View Related
Mar 5, 2010
I want to connect my pc to my laptop. I have fedora 12 installed in both system.How can I do this?
View 14 Replies
View Related
Mar 6, 2011
OS: Linux Mint 10 | Windows 7 Install Type: WUBI inside windows 7 Computer: HP Compaq Presario CQ56' Network: Realtek PCIe FE Family controller w/ Realtek 8102E chipset Problem in: Network Connection Issue: After I woke up my computer from Sleep, I lost ethernet. No connection. It told me that I had lost my connection. Why? Now, after several restarts, nothing.
View 14 Replies
View Related
Jul 23, 2010
i've just got a new broadband/wireless connection from Virgin Media and am trying to get this very old laptop online. in the past, cable connections have been easy, and wireless has given issues, but this time its the opposite. so, i have a new cable connection that is all plugged in. called customer support, they have no support for linux as usual, but they 'manually activated' the modem and thats all they can do. i am not trying to setup the wireless network yet, i'll do that with a pc later, for now i just want to plug in and go. on Network Settings, i have set the wired connection to dhcp. thats what i've done before ... not sure if i need to get static addresses from the ISP? i can go online now using the erratic but generous neighborhood free wireless.
ifconfig -a gives:
Code:
ath0 Link encap:Ethernet HWaddr 00:14:A4:1E:3E:65
inet addr:192.168.1.66 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:a4ff:fe1e:3e65/64 Scope:Link
[code]....
View 3 Replies
View Related
Jul 30, 2009
I have a Sun server that could be only configured via serial interface. It has one serial port with a RJ 45 connector. Although my laptop has not serial interface. Is there a way to use C-Kermit or any software to establish a serial connection via the ethernet port. It should be some kind of virtual serial port that should transmit the information over the ethernet port, without encapsulating it in ethernet frames.
View 11 Replies
View Related
Jun 15, 2010
it is possible to tap off your phone lines with ethernet connectors. As an example. I take a phone jack in the bedroom, I splice off the line of the phone and insert an RJ45 connector along with the phone connector. Hopefully the line will be 4 wire. I can't imagine it would work with only 2 wire. I don't know for sure. Would that work?
My thoughts are the problems with the entire phone line connections. I know the phone line runs out of the house. Would it not work because of that when I attach a switch to it? If anyone has accomplished this or tried to, I would like to know. I'm guessing that the house would have to be pre-wired with CAT-5 because of collisions that can occur.
View 3 Replies
View Related
Nov 23, 2010
I'm trying to connect my newly installed CentOs 5.5 to the network. But although there is a cable connection that has worked well before with other distributions, the network configuration keeps telling me:"Determining IP information for eth0... failed; no link present. Check cable?"Here are the results of the /.getinfo network script:This is a university network that is working well for thousands of students, so the problem is not on the side of the network or the DHCP server.The wireless card is also not shown in the network configuration.
View 1 Replies
View Related
Jun 27, 2009
I just fresh installed Fedora 11, and tried to connect via ethernet. I connected the cable and connection was started (in the network managed the two gray circled turned green) but then instead of connecting me the connection was aborted. I am behind a router if it helps and made sure eth0 is enabled. PS this is the output of "service network start":
Quote:
[root@Gal-PC subsys]# service network start
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
[code]......
View 5 Replies
View Related
May 7, 2010
Following upgrading my 09.04 partition to 09.10 then 10.04, all was working fine until I tried hibernate out for the first time - big mistake! If I can get to a position where i can log on to the system, I find that my ethernet network connection is disabled and I cannot get it to restart. My 09.10 system still works ok. I am tempted to do a clean install of 10.04, even though I'll have to spend some time reloading the extra's and re-configuring.
View 1 Replies
View Related
Jun 17, 2010
I just installed 10.04 on my new netbook and I am suprised to see that the ethernet is not recognized. When I run
Code:
ifconfig eth0
the result is
Code:
no such device
The machine was working fine before I installed Ubuntu. I am suprised to see this problem as I have already installed it on a few machines without any problem such as this.
View 2 Replies
View Related
Jul 24, 2010
I have a HP Mini running Ubuntu Desktop 10.04, and I cannot get a wired connection to work. My network card is "Broadcom Corporation BCM4312 802.11b/g (rev 01)", and I have the restricted drivers for the card installed. Wireless works fine, though.
My /etc/network/interfaces:
View 4 Replies
View Related
Sep 21, 2010
I am trying to run a cable from my wireless router over a 75ft cat6 cable to my bedroom. I don't get any connection on my end and I don't have any other ideas. I did setup a m0n0wall box just to try. I got the network led on my server to light up in my room but nothing more than that. Lastly, I tried adding a 5 port switch in my room and then connecting that to my server and nada.
View 4 Replies
View Related
Aug 5, 2011
After some fiddling around, I have come to the conclusion my current wifi access point hates my other computer's Broadcom chip or the drivers thereof. So, my current idea is as follows. I would like to use my netbook to connect to the wireless network, and then connect my other computer to it through ethernet. My netbook is dual boot XP and Ubuntu (think Ubuntu is a version behind) and I would be fine to set up this sharing in either and just leave it on as a repeater station. My other computer is dual boot XP and Fedora and I would prefer this work to allow me to have network in both. I have a straight-through cable and have verified that my network card supports the automatic crossing over behavior.
View 1 Replies
View Related
Feb 11, 2009
I have a very strange problem with my Linux Router/Firewall machine where i keep losing my connection on the ethernet card.
I have installed a Debian 4 distro on a PC with 2 nics to create a router/firewall machine. On nic-1 i have connected the ADSL modem and on nic-2 a laptop for testing.
What i want is to build a DMZ with public IP addresses assigned to the servers in DMZ.
Schematic example:
Code:
We have a total of 16 Public IP's assigned to the ADSL modem from our ISP configured in routering mode. Unfortunately our new ISP does not support Bridge mode, otherwise i would not have this problem. (we had modem in bridge mode working fine with our old ISP, but they have stopped so we were forced to switch to another ISP. eth1 and eth2 both have public IP addresses from the modem set hardcoded in the /etc/network/interfaces on Linux pc and on my testlaptop in the DMZ (server-1) i have set another public IP (they all fall in the same network range) I have enabled IP forwarding on Linux router/firewall and for testing the firewall is set to allow all traffic.
When i try to ping the testlaptop in my DMZ from a remote machine outside in our datacenter i get no reply.
However when i run the following command: ip addr add xx.xx.xx.xx dev eth1 to assign the public IP i have chosen for the laptop to the inner nic (eth2) and then try to ping the testlaptop again from the remote machine it still does not reply ... but (and here is the most bizar thing)...
When i then run the following command: ip addr del xx.xx.xx.xx dev eth1 (where xx.xx.xx.xx is the ip of the testlaptop) and try to ping again from the remote machine then it seems to be working fine ... however only for a short time because then connection is lost somehow.
View 7 Replies
View Related
May 2, 2011
How do I make share internet connection with playstation 3 with Linux Mint? I have put ethernet cable between them.
View 1 Replies
View Related
Jan 26, 2010
I'm trying to get my wireless to work on my laptop (dell inspiron 1520 broadcom 4311). I installed the b43 firmware and was able to set up my wireless connection. However, the internet connection is extremely patchy and seems to continuously drop (in fact most of the time it doesn't work). I can ping certain sites such as Google and get all packets received.
[Code]....
Furthermore, in Firefox the opening websites only works some of the time. Sometimes the google search page will load and sometimes it won't. I've disabled ipv6 using yast-network settings.
View 5 Replies
View Related
May 26, 2009
I installed Fedora to a desktop with a hardwire ethernet connection to my router. When I ran the live CD it connected fine. When I boot now I have no connection, and when I try to connect I get this "AVC Denial" message and some mumbojumbo about SELinux is preventing nm-dhcp-client to read libdbus-glib blah blah blah. The troubleshooter app is no help to me at all. This is extremely frustrating. A couple of weeks ago I did an install to this same computer and had no problem at all. The only difference is that this time I wiped all of my old distros from the HD, and made separate /, /var, /boot, /tmp, and /usr partitions (in addition to the old /home partition which I kept.) I don't know how that could be causing this problem, but it's the only thing different about this install. Should I just go back to putting everything but /home on one partition?
View 5 Replies
View Related
Jun 16, 2011
I installed Fedora today, and I automatically had internet connection, I never had do configure anything myself. Then, I was playing around with VPN for a good while (trying to set up the VPN connection to my University), and now, I suddenly lost my connection to the internet!
But only Fedora can't connect anymore, the Windows PC has connection as well as my Mac OS X (I dualboot Linux on my MacBook). The Ethernet connection works as well, when I unplug the cable, Fedora gives me a message, but I just don't get into the internet!
Does anyone have an ides what I have to do? I don't know anything about network connections and I'm new to Linux...
I already restarted the Computer, but that didn't work, and Google didn't really held either.
View 3 Replies
View Related
Jun 15, 2010
I purchased an EeePc 900HD (ASUS). Installed EeeBuntu_3.0 when I run "lshw -c network". I got a "DISABLE" status for my ethernet connection. In this forum I read that I need to run:
"ifconfig *logical_hardware_name* up"
The "DISABLE" status is gone but still no ethernet connection in the Gnome-NetworkManager.
View 9 Replies
View Related
Sep 13, 2010
Unable to access our site via eth0. Can access the same site, via same ISP on wireless laptop, or via eth0, but using ip annonymizer service. Have a feel that it could be something obvious, but after digging through Modems firmware I am running out of ideas
View 3 Replies
View Related
Sep 18, 2010
I updated to the latest available kernel for Kubuntu 10.04 today (2.6.32-24). When the system rebooted, it refused to connect to my wireless network. So far I have been unsuccessful in persuading it to connect. ifconfig shows the existence of the ethernet connection as eth0, and Network Manager also seems to accept the existence of the ethernet port - so why has it suddenly chosen now to stop connecting to the wired network?
View 8 Replies
View Related
Sep 26, 2010
I'm been wanting to try Ubuntu for a while now, and when my mom's netbook started to get insanely slow with WinXP, I tried the Netbook Remix on a USB stick. I LOVE it, except I am unable to get the wireless working, which is the only thing stopping me right now from a full install.
I believe my problem is that I need to activate the two drivers "Broadcom B43 wireless driver" and "Broadcom STA wireless driver" which appear as unactivated when I go into the hardware drivers admin tools. Unfortunately this netbook (HP Mini Netbook FW376UA) does not have an Ethernet port, so I can't just temporarily hard wire it to activate these drivers.
So my main questions are: 1) How can I activate those drivers without an internet connection?, and 2) Do you think that activating these drivers is indeed the answer to getting the wireless working?
The details:
Machine: HP Mini Netbook FW376UA
Network Controller: Broadcom Corporation BCM4312 802.11b/g
Ubuntu version: Ubuntu 10.04 Netbook
View 4 Replies
View Related
Nov 30, 2010
Just noticed that auto connection to my wired ethernet is not being established after restarts I'm making. Never recall this in the past. I do get an auto connect when I shutdown and restart. I'm using 10.04 LTS Lucid Lynx.
Also have noticed that nearly every upgrade over the past week or so is calling for restart to complete the upgrade. Can there be any unwanted problems in doing several upgrades over a period of several days before doing the restart? I'd like to think not.
As you can imagine these two issues together are causing some lost time.
View 5 Replies
View Related