Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
It is sorta covered in the
JavaRanch Style Guide
subject: Socket Connection Problem
java socket connection timeout taking more time when running in unix
Brio Report ReportMartException
Anyway to speedup TCP connection?
Client Failed to connect, how do I attempt a reconnect?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013