Tag Archives: Java Programming

Custom Java Application for the Betfair Exchange Completed

QuickFire is a custom Java application developed to operate with the Betfair Exchange. Our client required a simple application to select markets and simplify/speed-up the trading process during in-play horse races for both the main and Australian exchanges. The application was built using Java 1.6 and our own Core Betfair API, a custom, robust platform [...]

Getting the local host name using Java

A quick example of how to get the name of the localhost using the Java InetAddress class. String hostname = null; try { InetAddress localhost = Address.getLocalHost(); if (localhost != null) { hostname = localhost.getHostName(); } } catch (UnknownHostException e) { e.printStackTrace(); } System.out.println(“Hostname is ” + (hostname != null ? hostname : “Unknown”) );