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();
|
myListener = new ChatClientListener();
|
||||||
myRegistrationInfo =
|
myRegistrationInfo =
|
||||||
new RegistrationInfo(myUserName,
|
new RegistrationInfo(myUserName,
|
||||||
myListener.getHost(),
|
InetAddress.getLocalHost().getHostName(),
|
||||||
myListener.getPort(),
|
myListener.getPort(),
|
||||||
true);
|
true);
|
||||||
if (!register())
|
if (!register())
|
||||||
@ -316,7 +316,6 @@ public class ChatClient
|
|||||||
if (st.hasMoreTokens())
|
if (st.hasMoreTokens())
|
||||||
{
|
{
|
||||||
host = st.nextToken();
|
host = st.nextToken();
|
||||||
System.out.println("host: " + host);
|
|
||||||
if (st.hasMoreTokens())
|
if (st.hasMoreTokens())
|
||||||
{
|
{
|
||||||
port = Integer.parseInt(st.nextToken());
|
port = Integer.parseInt(st.nextToken());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user