• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Question on server Ports

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In one of the mock exam i came across the question in server ports. The question is as below

Q: You work as a software Developer for UcTech Inc. You write a request zand send it to a remote address as follows

1. The client abc.def.ghi sends the request . The port numbe of the client is 20.0.1.7
2. The request was sent to a port number 25.0.1.7. The request ended on port 25.0.1.8


Drag and drop the appropriate methods that you will use to retrive the address and port number of the client and server with the following port number and addresses.

Column A Column B

20.0.1.7 getRemoteHost()
25.0.1.7 getServerPort()
abc.def.ghi getLocalPort()
25.0.1.8 getRemotePort()
getRemoteClient()

Will i get Questions of this kind on server ports in the exam(SCWCD 1.4). If so could anyone please suggest the material i need to go through. I have my exam scheduled next week.


Thanks in advance
Pooja
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For questions like these, you need to QuoteYourSources, please. "One of the mock exams" is not sufficient.

The whole question sounds odd, since something like "20.0.1.17" is not a port number, but an IP address.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That question i stated above is from uCertify PrepEngine demo version Simulator.

I want to know whether these kind of questions will appear in the SCWCD 1.4 Exam.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you just open a new account to post the reply? Why?
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can find the details here:
]http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html]



getRemotePort() -- returns the port of the client that sent the request -- in this case it is 20.0.1.7

getRemoteHost() -- Returns the fully qualified name of the client that sent the request, which in this case will be "abc.def.ghi"

getServerPort() -- to which port was the request originally sent? , in this case it is 25.0.1.7

getLocalPort() -- where the request ended up -- in this case '25.0.1.8"
[ August 24, 2007: Message edited by: M Krishnan ]
reply
    Bookmark Topic Watch Topic
  • New Topic