Thank you to the different users who helped me narrow down the problem. Actually there were multiple issues. I have outline them here as a complete answer and hope someone else may benefit.


like RJS said, I had to put the listen_addresses to accept multiple IPs. This was initially done but later on I realised that the line had a # in front of it which meant it was commented. So I took off the comment.
Even after stopping the PG server, pg_lsclusters showed that there was still a service running. So I couldn't restart it since it reported that it  was already running.
Then by using ps I found that a related program known as pgpool was using the same port and it wouldn't let the default 5432 port to be used by PG. So I stopped this from the terminal using sudo pgpool stop. 
Then I restarted the postgres server and all was fine!

While searching for an answer, I was told by a volunteer RhodiumToad on IRC (#postgresql) that pooling wasn't necessary for what I was doing. I was asked why I have it. The strange thing is that I never installed it. Perhaps pgpool was installed as some addition.
One of the other problems was that I could not get pgadmin to start up on Windows. and correctly connect. There was a libpq.dll missing. Apparently (you'll find another post on stackoverflow about this), the file was there in a few places on Win XP. So I copied all of the postgres DLL files to Windows/System32 and it fixed that.


That's it! Hope this helps.

Can't connect to postgresql on local machine using IP + pgadmin
I have a problem with ogr2ogr and osm file.

I install from source (on Ubuntu 12.04.2 LTS) newest GDAL libary and OGR still can't read osm files.

gdal-config --version
1.10.0
ogr2ogr --version
GDAL 1.10.0, released 2013/04/24
ogrinfo
Supported Formats:
  -&gt; "ESRI Shapefile" (read/write)
  -&gt; "MapInfo File" (read/write)
  -&gt; "UK .NTF" (readonly)
  -&gt; "SDTS" (readonly)
  -&gt; "TIGER" (read/write)
  -&gt; "S57" (read/write)
  -&gt; "DGN" (read/write)
  -&gt; "VRT" (readonly)
  -&gt; "REC" (readonly)
  -&gt; "Memory" (read/write)
  -&gt; "BNA" (read/write)
  -&gt; "CSV" (read/write)
  -&gt; "GML" (read/write)
  -&gt; "GPX" (read/write)
  -&gt; "KML" (read/write)
  -&gt; "GeoJSON" (read/write)
  -&gt; "GMT" (read/write)
  -&gt; "PostgreSQL" (read/write)
  -&gt; "PCIDSK" (read/write)
  -&gt; "XPlane" (readonly)
  -&gt; "AVCBin" (readonly)
  -&gt; "AVCE00" (readonly)
  -&gt; "DXF" (read/write)
  -&gt; "Geoconcept" (read/write)
  -&gt; "GeoRSS" (read/write)
  -&gt; "GPSTrackMaker" (read/write)
  -&gt; "PGDump" (read/write)
  -&gt; "GPSBabel" (read/write)
  -&gt; "SUA" (readonly)
  -&gt; "OpenAir" (readonly)
  -&gt; "PDS" (readonly)
  -&gt; "HTF" (readonly)
  -&gt; "AeronavFAA" (readonly)
  -&gt; "EDIGEO" (readonly)
  -&gt; "SVG" (readonly)
  -&gt; "Idrisi" (readonly)
  -&gt; "ARCGEN" (readonly)
  -&gt; "SEGUKOOA" (readonly)
  -&gt; "SEGY" (readonly)
  -&gt; "ODS" (read/write)
  -&gt; "XLSX" (read/write)
  -&gt; "PDF" (read/write)


When I try this:

ogrinfo UMP-PL-CCBySA_20130717.osm


and I get this:

ERROR 0:
FAILURE:
Unable to open datasource `UMP-PL-CCBySA_20130717.osm' with the following drivers.
Supported Formats:
  -&gt; "ESRI Shapefile" (read/write)
...
...


Anyone know what I do wrong?
