Browsing articles tagged with

networking

How to Create sub domains on localhost in apache on Ubuntu

Sub domains on localhost When working with apache locally, the common way to use it is though the "http://localhost" url. When doing web development or some kind of testing, you might need to create sub domains on localhost, just like on online servers. This post shows you how to create sub domains inside Apache on localhost. Its easy and takes only a ...

Monitor per process network bandwidth on linux with nethogs

Nethogs Nethogs is a command line utility for linux that displays the network bandwidth used by each application or process in realtime. It is useful in situations when a certain process uses up too much of the bandwidth and needs to be caught. Project website http://nethogs.sourceforge.net/ The website describes the tool as NetHogs is a small 'net top' tool. Instead of breaking the traffic down ...

Code a TCP Connect port scanner in PHP

A port scanner is a software application designed to probe a server or host for open ports. We earlier made a TCP Connect port scanner in C here - http://www.binarytides.com/blog/tcp-connect-port-scanner-code-in-c-with-winsock/ and here - http://www.binarytides.com/blog/tcp-connect-port-scanner-with-linux-sockets-bsd/ Now we shall try making the same in PHP. The code is very simple : Using fsockopen <?php /* Simple TCP connect port scanner in php using fsockopen */ //avoid warnings like ...

Setup internet connection sharing on ubuntu with Firestarter

Firestarter is an easy to install firewall application for Ubuntu which also has to the option to enable Internet Connection Sharing at the click of a mouse. Install firestarter $ sudo apt-get install firestarter Launch the application firestarter. The wizard will come up on the first run. Enable Internet Connection Sharing in the wizard, and start the firewall. Now other computers connected to this ...

Slow Internet on Ubuntu when using a switch

Switches, Routers, Wires and speed As usual internet was fast on ubuntu as it used to be till I needed to plug more PCs into the adsl route lying nearby. After connecting all computers and the adsl router to a switch I noticed that on one of the PC (Ubuntu 8.04) internet became really slow. Rest of the 2 PCs one ...

Php set_time_limit wont take into account socket operations

The PHP function set_time_limit is used to set a time limit on the maximum execution time of a script. But if the script has socket operations using fsockopen , fread and fwrite or even CURL then the set_time_limit may not appear to have any effect on the scripts timelimit or timeout. Again if safe mode is on then also set_time_limit has ...



Connect with us