import java.net.*; class LocalServer { private final String mPathIPFileName=new String("ip"); private final String mStrID=new String("[IP]"); private final int mMinLength=mStrID.length(); public LocalServer() { } public String getServerIP(String strHostPathFileName)throws Exception { return getServerIP(new InFile(strHostPathFileName,mPathIPFileName)); } public String getServerIP(URL resBase)throws Exception { return getServerIP(new InFile(resBase,mPathIPFileName)); } private String getServerIP(InFile inFile)throws Exception { String strHost; String strLine; int strLen; strLine=new String(); strHost=new String(); while(true) { try{strLine=inFile.readLine();} catch(Exception exception){return strHost;} strLen=strLine.length(); if(strLen