Results 1 to 6 of 6
Thread: How To Make Socket Connection
- 04-17-2008, 01:33 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
How To Make Socket Connection
hello, frndz i prepared code for socketprogramming ...its working in stand alone system but it is not working across the network...it is showing an exception.....socket is not creating..........i mentioned int port=6789; and hostname=localhost; so wt can i do???????????????????:
-
What is the exception? May be that port is being used by another application on the system you are trying to test networking.
"The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal
- 04-17-2008, 05:07 PM #3
Member
- Join Date
- Apr 2008
- Posts
- 4
- Rep Power
- 0
If the hostname your using is localhost then you aren't connecting across a network, you are trying to connect to the computer you're currently on. More information would be good, but if you don't have the client/server both running on your local computer and your trying to connect to localhost then well, it just won't work.
- 04-18-2008, 07:50 AM #4
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
- 04-20-2008, 09:02 PM #5
Member
- Join Date
- Apr 2008
- Posts
- 4
- Rep Power
- 0
What do you mean you changed localhost to the host name of the machine? Do you mean the IP address of the machine? You're probably going to need to post up some information about what you're trying to do and exactly how you're trying to do it.
What is the address of the remote machine your trying to connect to and on what port. Is it in the same network as you? Is the remote machine running a firewall? Things like that.
- 04-21-2008, 06:05 PM #6
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
Similar Threads
-
Software caused connection abort: socket write error
By kuguy in forum NetworkingReplies: 3Last Post: 04-13-2010, 03:43 PM -
Socket
By vortex in forum New To JavaReplies: 2Last Post: 05-25-2008, 06:41 AM -
XML through a socket
By Heather in forum XMLReplies: 2Last Post: 07-04-2007, 09:31 AM -
send files through socket
By bbq in forum Advanced JavaReplies: 1Last Post: 06-05-2007, 02:08 AM -
How to make a HTTP connection to a website
By Alayna in forum NetworkingReplies: 1Last Post: 05-20-2007, 11:58 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks