I'm writing a didactic client-server game. I want when the server starts, it prints an inet
address on the screen. I know a machine can have more than one inet
address, but I need only one, and get it in a easy way.
edit: During the testing of the client-server interactions i use the address 127.0.0.1. Now i want to test the client-server interactions when the client is on an other machine through internet. To do this i have to get the ip address from the server program (i want that the server print on the screen an inet address) and give it to the client program. Sorry for the misurunderstanding.