Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

tcp/ip

i use serversocket and clientsocket components in delphi 5 to establish aconnection but the connection takes
alot of time (1min). what causes this delay although the connection is in one pc .what about the ports is their value affect(i use 1000,2000,50)to examine.
0
rihab
Asked:
rihab
  • 2
1 Solution
 
johnwaCommented:
1.Does your computer have installed the tcp/ip protocol .
2.what ip you set in your serversocket and clientsocket components ? if you use them in the same computer,you had better set to 127.0.0.1.
0
 
rihabAuthor Commented:
the tcp/ip is installed , the connection is done but it is very slow comparing with other programs written in Delphi and work in the same lan(take few sec only !).
0
 
johnwaCommented:
try to edit the file:"hosts" in your \windows\,add the following:

ComputerName  YourIP

  the computername is you computer name,and the IP is you IP.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now