Creating simplest Web Server using Delphi

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,100
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 11, 2010

Simple Web server that serves one HTTP command (GET) and send the result.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (bagyev)

  • Спасибо! Очень помогли ))

    Но остался один вопрос, не могу понять, почему когда проверяю localhost:7777 со своего компьютера все работает, а когда проверяю свой с чужого, 192.168.1.35:7777 - нет. Адрес 192.168.1.35 беру из свойства LocalHostAddr. Не подскажете, что может быть не так?

  • @TrueVitaly

    Дело в том, что сокет принимает соединения только с того адреса, который указан в поле TcpServer1.LocalHost. В данном видео это "localhost". Для того, чтобы сокет принимал соединения с любого адреса, нужно в этом поле выставить значение "0.0.0.0".

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • @bagyev у сервера не может быть другого адреса кроме локалхост. публичный адрес зависит только от провайдера. возможно он с адресами намудрил.

  • very nice.

  • @TrueVitaly

    192.168.1.35 - это локальный адрес, а тебе нужен IP, который дал тебе провайдер. Узнать его можно на 2ip.ru

  • Hi, but how to receive POST data from HTML forms ?

  • FIX: To all those who receive an empty page, do this (Win7):

    netsh winsock reset catalog (resets winsock entries)

    netsh int ip reset reset.log hit (resets TCP/IP stack)

    run them BOTH in CMD (With admin priv) and reboot.

  • @lukegw are you sure the server was active when you tried to connect via browser?! sometimes you can get a port bind error if another application has binded the port...

  • Спасибо!

    Отличный пример, очень помог :)

  • @bagyev Спасибо! Работает!! Час голову ломал :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more