trying new way to get host name
git-svn-id: svn://anubis/gvsu@153 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
81e4bd2f7e
commit
e517d04df1
@ -101,7 +101,7 @@ public class ChatClient
|
||||
myListener = new ChatClientListener();
|
||||
myRegistrationInfo =
|
||||
new RegistrationInfo(myUserName,
|
||||
myListener.getHost(),
|
||||
InetAddress.getLocalHost().getHostName(),
|
||||
myListener.getPort(),
|
||||
true);
|
||||
if (!register())
|
||||
@ -316,7 +316,6 @@ public class ChatClient
|
||||
if (st.hasMoreTokens())
|
||||
{
|
||||
host = st.nextToken();
|
||||
System.out.println("host: " + host);
|
||||
if (st.hasMoreTokens())
|
||||
{
|
||||
port = Integer.parseInt(st.nextToken());
|
||||
|
Loading…
x
Reference in New Issue
Block a user