B4J Question How to get my HostName?

Jerez

Active Member
Licensed User
Longtime User
Hi,

Please i need help with this basic problem but i can't find the answer.

I'm using this code to get my IP address:

B4X:
Dim local As ServerSocket

Dim ip as String =  local.GetMyIP

But how can i get my hostname?

thanks!
 

Roycefer

Well-Known Member
Licensed User
Longtime User
Almost the whole library is pure Java, meaning it is platform-independent. The only function that is platform-dependent, I think, is the restart-app function, which is Windows-only.
 
Upvote 0

Jerez

Active Member
Licensed User
Longtime User
Almost the whole library is pure Java, meaning it is platform-independent. The only function that is platform-dependent, I think, is the restart-app function, which is Windows-only.

thanks man! you saved my day.
 
Upvote 0
Top