internet-connection

Detect an internet connection activation with Delphi

I've been using a 3G wireless card for a while and every time I connect, my anti-virus fires up the updates. I'm wondering what is the Win32 API set of functions that I can use to, either, get notified or query about the event of an Internet Connection coming up? And is there already a set of ported headers for Delphi? ...

100mbps Dedicated Server same download speed as a Shared Host!

Hi, I have two specs from two different hosts I am using: (a) Dedicated server with Full duplex 100Mbits internet connection ($140 per month) (b) Shared Host on a server that has 100Mbits internet connection ($7 per month) I have tested my application which downloads from other servers and lets users download from my site in turn. I ...

Code to enable/disable internet connectivity

Hello everyone, I need to write some code to trigger internet connectivity on a computer. By default,internet should not work. But,after installing my program,internet should work. Ofcourse the computers are connected to my server and normally access internet through DHCP right now. But,give me some ideas to make things in such a way ...

How can I bind TCPListener to an external IP address?

I have a client/server style application which communicates using WCF which all works great. One function of the application is to get files from client machines onto the server (Central Control). The Central Control requests a list of file in a specified folder on the client and opens up a port using sockets for the clients to connect ...

Detect internet Connection using Java

I want to see if anyone has an easy way of detecting if there is an internet connection when using Java. The current app used the "InternetGetConnectedState" method in the WinInit DLL for windows, but my app needs to be cross-platform for mac operation and this way will not work. I do not know JNI at all either to use DLLs in Java and it...

Laptop Battery Status?

Is there any way to get the status of the Battery (charging/discharging/Current Charge/Capacity/etc...) from a C++ program in a portable manner between Windows & Linux. I'm doing a small program for my own use and require some help with it. Kindly look over the description of the program on my blog: The JB Journals Also, is there any...

How to find out whether computer is connected to internet?

how can I find it in python? thanks in advance ...

listing processes and their connections

Hi I would like to make a small program listing running programs on my computer - this seems simple. But I would also like to detect their connections, ex.: I detect a running Internet Explorer (or other browser), but I would like to know which websites it is visiting. Another example; I detect Word is running, and would like to know wh...

how to check netconnection in firewall & proxy environment in c#

i have used the following code to check for internet connection it works perfectly without firewall & proxy. how do i check net connection in firewall & proxy mode. please help me private static ManualResetEvent connectDone = new ManualResetEvent(false); public static bool IsInternetConnected() { int Desc; string[] sitesList = { "www....

internet connection problem

I am using Visual Web Developer express and when I try to display the webpage I'm working on in a browser Internet Explorer cannot find the page. When I ask Internet Explorer to diagnose the problem I got the message ""localhost" is not set up to extablish a connection on port "52429" with this computer." Any ideas what to do? ...

What should I use instead of ping?

In my Windows Forms application (on startup) I use the ping command to check if both the Internet connection and my SQL Server are alive. Is there any "better" way-command I should use for accomplishing the above task in the .NET framework 2.0? ...

Is there a Windows hook for when the internet is connected/disconnected?

I could do an endless timer checking IsInetOffline(), but I would prefer a hook callback that tells me when I plug/unplug the ethernet network cable or connect to wireless internet. Is there such a thing in the Windows API? ...

Consuming a web service through an internet proxy server, using a WCF client in C#; providing proxy server authentication

I have a client program that consumes a web service. It works quite well in a number of installations. Now I have a situation where a new customer connects to the internet via a proxy server, and my program's attempt to access the web service gets the "HTTP status 407: Proxy authentication required" error. I thought that all the confi...

Check if host computer is online with PHP?

I've been having some issues with my Internet connection and I was wondering what is the fastest, error-less and most reliable way to check if the host computer is connected to the Internet. I'm looking for something like is_online() that returns true when online and false when not. ...

ANDROID: if WiFi is enabled AND active, launch an intent ...

This is what I would like to do : => IF WiFi is enabled AND active, launch an intent (in fact it's a WebView that gets its content=>the instructions of my app on the web) => IF NOT, then I would launch another intent so that I don't show a WebView with "Web page not available ... The Web page at http://www.mywebsite.com might be tempor...

Are there any reliable methods of calculating the current bitrate of an internet connection?

I have experimented with a technique that involves a web page request which you use to calculate the bit-rate based on bytes divided by the time elapsed. You can average multiple data points of course, but is this as accurate of a bit-rate estimation that can be made? Do any professional or less hackish techniques exists? (Or is this ju...

Networking over the 3G network and Ftp/WCF

I need to upload images to a webserver and each image will have additional information that I'm thinking of encapsulating in an xml file. I am thinking of using FtpWebRequest and FtpWebResponse. Bue to bandwidth issues I will probably queue each image (with its associated xml file) and transfer them 1 at a time To get the best perform...

How can make a C# Client - Server run over internet?

The current application that I'm working on is a Client - Server C# application and work very well on a network. Now I'm thinking if it can run over the internet. The question is how to do this? How can I start the Server on my computer and in what circumstances so that every Client over the internet to connect to? What software I need t...

Nokia E50 and mac internet sharing

Hi, I am using a nokia E50 and imac. my imac is connected to the internet. i want to share my internet connection to my E50 too via bluetooth. is there any way to do this. help needed.. is there any third party application which does the same? ie, which provide an option to share the internet of a desktop.! Thanks in advance. ...

Visual Studio internet connection failue

Last night my Visual Studio was working fine. Today it fails to connect to the internet (can't download rss feeds or connect to my TFS Server). My internet connection is working fine (I am using it to write this). What could cause this? Are there settings that I can get at to fix it? The only clue I have is that Resharper is giving ...