Tag Archives: network

Samsung Galaxy Ace S5830: View Your MAC Address CodeUnit 06 JUL 2011

The Samsung Galaxy Ace S5830 is a nice mid-range Android phone running 2.2 Froyo with Touchwiz 3.0 on top. Sometimes it is useful to know what your device’s MAC address is and to locate it on the phone isn’t always that intuitive.

First, select the Settings application from the main menu and once loaded, select the Wireless and networks menu option. Once loaded, enter the Wi-Fi settings menu option. The trick now is to hit the menu button, which will bring up a new contextual menu with one of the options being Advanced. Click on Advanced and the new screen will finally read return your MAC address to you.

And now you know.

Ubuntu Server: How to Set the Network Default Route CodeUnit 30 MAY 2011

To view your current network default route on your Ubuntu server box (or Ubuntu desktop for that matter), simply type in:

ip route

This will spit out a whole lot of important information regarding your current network connection on the box, the most important for you in this case being the last part that reads default via xxx. If xxx is not a valid gateway that you want to use, e.g. your router IP address, then you can add a default route with the following command:

sudo ip route add default via

where is the IP address of your router. Alternatively, you can also use this command to achieve the same effect:

sudo route add default gw


How to Release and Renew Your IP Address via Ubuntu Terminal CodeUnit 25 APR 2011

ifconfig is the go to command when you want to view anything related to your Internet or network connections on your Linux box. To view the details of the various network adaptors currently visible, simply run:


This will feed you back details about your available network adapters, MAC addresses, assigned IP, etc. Note the network adapter eth0. This is the default network adapter if you are connected via normal network cable.

Do release your currently assigned IP address, simply run:

sudo ifconfig eth0 down

This will shut down the eth0 interface and subsequently releases the IP in the process. To now renew your IP, run:

sudo ifconfig eth0 up

Done. If you re-run ifconfig you’ll see the new IP address. Useful if you want to release renew your IP without rebooting the whole machine!


What is my iPhone’s current IP Address? CodeUnit 28 MAR 2011

To find out what the current IP address assigned to your iPhone is turns out to be pretty simple if you know where to look.

First, select Settings from your SpringBoard. Next, select Wi-Fi from the resulting Settings menu. This results in a list of available networks being displayed under the Choose a Network… label. To the right of each listed network is a right-arrow icon. Find the network you are currently connected to in the list (it has a tick next to it) and click on the right-arrow icon.

This will bring up the detailed network information, listing among other things the IP address your iPhone is currently assigned with from that network’s DHCP server.


The hassle in coding .NET for a large network which doesn’t trust you Programming 26 MAR 2007

microsoft-.net-logoFor the last couple of years .NET has crept in as my programming language of choice. It’s wonderfully simple, makes light of usually tedious programming tasks and has a lot of support on offer. From the start, the .NET framework had a security feature whereby un-trusted code would not be permitted to be executed from network locations. This is a wonderfully secure idea and is probably a very very good thing to have – unless of course you’re writing shared applications that need to be run from a network location on a large network.

Often we need to run a home-grown application from a Novell login script for all users. Now, my almost exclusive use of .NET doesnt go down well with this idea. Sure, all my code is signed by my personal strong encryption key-pair, but unfortunately apart from my development machine, no other machine on the network has my key installed, nor would anyone trust it. Which leaves me with only one real alternative: writing a distributor application in an older, less restrictive language and letting that execute the .NET application from a local drive.

So my solution is simple enough – whip up a quick and dirty application in VB6 or something similar which simply copies the .NET application from a network location to the local drive and then executes it from there.

Problem solved.