| | |
Sockets fundamentals
![]() |
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 7
Hi everyone,
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 freesoft_2000@yahoo.com
Thank You
Yours Sincerely
Richard west
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 freesoft_2000@yahoo.com
Thank You
Yours Sincerely
Richard west
This isn't a Java question. You must register with a service like DynDNS (http://www.dyndns.org/) if you have a dynamic IP (which most likely you have, static IP is usually the more expensive business option). You can find out more information about how to set this up at the dyndns website.
Your friend will only be able to access your computer if it is online.
Moderator: please move this thread to "Web Technologies" or "Web Hosting".
Ed
Your friend will only be able to access your computer if it is online.
Moderator: please move this thread to "Web Technologies" or "Web Hosting".
Ed
•
•
•
•
Originally Posted by freesoft_2000
Hi everyone,
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 freesoft_2000@yahoo.com
Thank You
Yours Sincerely
Richard west
•
•
•
•
In a world without walls or fences,
What use are Windows and Gates.
•
•
•
•
Originally Posted by cosi
This isn't a Java question. You must register with a service like DynDNS (http://www.dyndns.org/) if you have a dynamic IP (which most likely you have, static IP is usually the more expensive business option). You can find out more information about how to set this up at the dyndns website.
Your friend will only be able to access your computer if it is online.
Moderator: please move this thread to "Web Technologies" or "Web Hosting".
Ed
Alex Cavnar, aka alc6379
![]() |
Similar Threads
- tutorial for UNIX sockets (C)
- undefined reference errors when using C++ Sockets Library (C++)
- windows XP home sockets error (Windows NT / 2000 / XP)
Other Threads in the Java Forum
- Previous Thread: error" installer cannot proceed with current internet proxy settings"
- Next Thread: File overiding prevention
| Thread Tools | Search this Thread |
6 @param actuate android api applet application arc array arrays automation balls binary bluetooth bold business byte c++ chat class client code codesnippet collections compare component coordinates database defaultmethod detection doctype dragging ebook eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework hql html ide ideas image ingres input integer internet intersect invokingapacheantprogrammatically j2me java javaexcel javaprojects jni jpanel jtextarea julia linux list map method methods mobile mysql netbeans newbie nextline parameter php pong problem program programming project recursion recursive scanner sell server set sms sort sql string sun swing swt terminal threads tree web websites windows





