Author Topic: How to get current name and IP of a server?  (Read 749 times)


Dead section tonight?

IP:
Quote
getAddress()
Purpose
Use the getAddress method to get the address and port that this NetConnection is currently attached to.
Returns
Returns the address and port that this NetConnection is currently attached to, where the address will be of the form: “A.B.C.D:Port”. A .. B are standard IP numbers between 0 and 255 and Port can be between 1000 and 65536. If the connection is local, the string “local” will be returned. If a this NetConnection is not currently connected the method will return a NULL string.

IP:

How do I get around that "local" thing?
Also, what about name?

Also:

%addre = getAddress();
echo(%addre);


Does nothing. (Yes, I put in a serverCmd function)
« Last Edit: July 11, 2009, 11:25:59 PM by Azjherben »

Do I have to do something like...
%client.getAddress();


If so, how do I find the host?