Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

tcp/ip

Posted on 2000-03-04
3
Medium Priority
?
165 Views
Last Modified: 2010-04-04
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
Comment
Question by:rihab
  • 2
3 Comments
 

Expert Comment

by:johnwa
ID: 2599388
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
 

Author Comment

by:rihab
ID: 2608997
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
 

Accepted Solution

by:
johnwa earned 100 total points
ID: 2618981
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question