server

Ads

 
 

Share on Google+Share on Google+

micheal
server
0 Answer(s)      6 years and a month ago
Posted in : JDBC
The developer observes that some information is not delivered at the client end. He
tries using the following code to create a reliable connection between server and
client:
public Server()
{
try
{
serverSocket = new ServerSocket(1001);
System.out.println(serverSocket.toString());
}
catch(IOException e)
{
System.out.println("Error Starting the Server . . .");
}
System.out.println("Server started . . .");
this.start();
}
The developer writes the following code for client:
public client()
{
try
{
Socket clientSocket = new Socket("192.168.0.70", 1002);
}
catch(UnknownHostException e)
{
System.err.println("Unidentified hostname");
System.exit(1);
}
}
However, the developer observes that clients are able to connect to the server only
when the server and clients exist on the same machine. But, when a client executes
on a different machine then an exception is thrown at client end. What is the cause of
this behavior of the preceding code snippet? 
Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
server
connection between server and client: public Server() { try { serverSocket...(IOException e) { System.out.println("Error Starting the Server . . ."); } System.out.println("Server started . . ."); this.start(); } The developer writes
dns server
dns server   how to make my pc a dns server
Advertisements
server status
server status   How to check the apache server status in unix machine
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
ftp server
ftp server  ftp server
ftp server
ftp server  ftp server
ftp server
ftp server  ftp server
snooping the server
snooping the server  Define snooping the server in servlet
snooping the server
snooping the server  Define snooping the server in servlet
SQL Server
SQL Server  Hii, What is SQL Server ?   hello, SQL Server is a DBMS system provided by Microsoft
what is the server
what is the server  what is the server?   Server... of software, such as a WWW server. A single server machine can (and often does) have several different server software packages running on it, thus providing many
server error
server error  during starting of WAS server in eclipse, everytime this warning comes........ WARN [Settings] Settings: Could not parse struts.locale setting, substituting default VM locale plz do help me
FTP server
FTP server  How to store a series of files in a ftp server using java
Chat server
Chat server  Please provide me complete information for making a chat server project using JMS
Application Server and Web Server - WebSevices
Application Server and Web Server  General difference, Application Server and Web Server  Answer: A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response
Tomcat server/any application server
Tomcat server/any application server  how the server understands request is coming from client and how can it give response within very short span of time
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
chatting Server
chatting Server  I want to develop a chatting server in jsp using mysql as database.What I need for that. Please tell me
chat server
chat server  i want to develop chat server through jsp+struts+spring+hibernate so please guide me
chat server
chat server  how to write code for Many-Many (Broad cast): Each client opens a socket connection to the chat server and writes to the socket. Whatever is written by one party can be seen by all other parties
FTP Server
FTP Server  i'm working on ftp server if one client has uploaded a file i need to save the details of the user who has uploaded the file like username,filename & ipaddress using java
web server
web server  we need to restart tomcat server when we upload java class file but no need to restart when we upload jsp file. why
weblogic server
;WebLogic is a server software application that runs on a middle tier, between back-end... and applications. WebLogic server is based on Java 2 Platform, Enterprise Edition (J2EE... features of WebLogic server include connectors that make it possible for any legacy
DIFFERENCE BETWEEN APPLICATION SERVER AND WEB SERVER
DIFFERENCE BETWEEN APPLICATION SERVER AND WEB SERVER  What is the difference between application server and web server
Application Server
Application Server       An application server is an application program that accepts connections in order... server, database server, backup server, print server, mail server, web server
Server Sockets
Server Sockets     ... program and a server program. In java there is a java.net package, which... the client side connection and second is server socket, which implement
(List)Web server n app. server
(List)Web server n app. server  Hi,I have searched list of web server & app server lists,but every time i got shuffled ,Kindly any responsible person tell me the names of web server & app server.   Hi Please
Recommendation for application server and SOA process server
Recommendation for application server and SOA process server  Comparing between apache geranimo and jboss application server, which one is more...? and is there any open source reliable process server alternative to websphere process server
Tutorials   
Java Spring Hibernate Struts Training java.lang.classnotfoundexception com.mysql.jdbc.driver how to retrieve text and images from mysql database and show on html page using jsp servlet How to install Neo4j on Ubuntu 15.10? please help me in these prog MYSQL - mysql copy table to another table example by creating new table solution for mapping hibernate and pojos from net beans through database Connect GWT application with Oracle inventory System of Medical Store inventory System of Medical Store inventory System of Medical Store inventory System of Medical Store This code have created jTable that connected with a database.every cell of last column have a button.But this button doesn't work properly.Where is the error java program Java Database Program jdbc Database connection class in a live project ..?? What is JDBC architecture? Unable to Create DSN for excel to ms access importing data and edit that data Database Scrolling Buttons how to use foreign key in java How to delete content of a log file from linux terminal? JSP-Oracle connectivity Student Management System Java code for Saving Marathi (Indian local language ) in Mysql and retrieving the same crud operations with foreign key constraint. I really need help with this assignment question Please help me out Please Backup Failed Mysqldump Got Errno 28 On Write Upgrade MySQL 5.1 to 5.5 in cpanel mysqldump all databases com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jpa.sequence' doesn't exist persistence xml class element persistence.xml for MySQL MySQL JDBC Driver pom dependency code Blob column jdk6 and oracle 8i connexion oracle 8i et jdk6 java [ cannot retrive date from sql ] why?? Order Entry System How to threow timeout exception when DB is not responding How to threow timeout exception when DB is not responding This is the employee form to add data to mysql database but I got error of NullPointerException, Is this write code please give me feedback as soon as possible make a method which takes user name & pwd as parameter & validate them against the database. If the corresponding user exist return true otherwise false. prabhakar validating credentials and displaying error message in login .jsp if not valid JDBC jdbc jdbc code register servlet vibhu

Ads

 
Advertisement null

Ads