Solved

tcp/ip

Posted on 2000-03-04
3
158 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 25 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now