I have a problem with the fundamentals wit serversockets and sockets in java.
In the constructor of the java socket as shown below
Socket(InetAddress address, int port)
In the above constructor what do they mean by address?
In the below java constructor as shown below
Socket(String host, int port)
In the above constructor what do they mean by host?
In the constructor of the java serversockets
ServerSocket(int port, int backlog, InetAddress bindAddr)
In the above constructor what in the last argument?
and how do i create a host name that is unique to my computer. I am using
win 98 by the way.
What i am using currently is a dial up to my local isp and know nothing about it.
Basically what i want is to be able to create a unique host name on my computer and my friend that lives very far away from me and assuming that he already has the socket client application and what is he supposed to enter as his host name to be able to connect to my java serversocket on my computer.
For example the dial up company that i am using is firefox telecoms and the dial up company that my friend is using is jetset electronics.
Thus is there a way i can create an ip address unique to my computer whether online or offline.
I hope someone can help me answer these mysterious questions for me.
My e-mail is email@example.com