A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
Socket Connection Problem
Joined: Mar 26, 2009
Apr 06, 2009 04:41:22
in my program
i want ipaddress & port number to be entered by the user in text fields. this values should passed to socket connection
what i did
Socket s=new socket(ipaddress,port_no);
but this doesn't work....so do help me out......
Joined: Mar 22, 2005
Apr 06, 2009 04:53:22
You didn't say
it doesn't work, but in any case there is no Socket (
, String) constructor. You need to use an int for the port number. If that's not the problem you're facing,
of what is the problem.
Ping & DNS, my free Android app for network diagnostics
I agree. Here's the link:
subject: Socket Connection Problem
java socket connection timeout taking more time when running in unix
Anyway to speedup TCP connection?
Client Failed to connect, how do I attempt a reconnect?
Brio Report ReportMartException
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014