نمایش نتایج: از شماره 1 تا 10 , از مجموع 10

موضوع: CURL Connection: ERROR couldn't connect to host

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #10
    عضو انجمن aoscentral آواتار ها
    تاریخ عضویت
    Apr 2009
    محل سکونت
    /
    نوشته ها
    193
    تشکر تشکر کرده 
    13
    تشکر تشکر شده 
    229
    تشکر شده در
    96 پست

    پیش فرض پاسخ : CURL Connection: ERROR couldn't connect to host

    نقل قول نوشته اصلی توسط is24.ir نمایش پست ها
    نتیجه دستور اول

    کد PHP:
    # /sbin/ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:13:72:65:D5:59
              inet addr
    :74.81.168.173  Bcast:74.81.168.255  Mask:255.255.255.128
              inet6 addr
    fe80::213:72ff:fe65:d559/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU
    :1500  Metric:1
              RX packets
    :10367161 errors:0 dropped:0 overruns:0 frame:0
              TX packets
    :14130134 errors:0 dropped:0 overruns:0 carrier:0
              collisions
    :0 txqueuelen:100
              RX bytes
    :1434873897 (1.3 GiB)  TX bytes:3614410161 (3.3 GiB)
              
    Base address:0xecc0 Memory:fe6e0000-fe700000

    eth0
    :1    Link encap:Ethernet  HWaddr 00:13:72:65:D5:59
              inet addr
    :74.81.168.179  Bcast:74.81.168.255  Mask:255.0.0.0
              UP BROADCAST RUNNING MULTICAST  MTU
    :1500  Metric:1
              Base address
    :0xecc0 Memory:fe6e0000-fe700000

    eth0
    :2    Link encap:Ethernet  HWaddr 00:13:72:65:D5:59
              inet addr
    :74.81.168.180  Bcast:74.81.168.253  Mask:255.0.0.0
              UP BROADCAST RUNNING MULTICAST  MTU
    :1500  Metric:1
              Base address
    :0xecc0 Memory:fe6e0000-fe700000

    lo        Link encap
    :Local Loopback
              inet addr
    :127.0.0.1  Mask:255.0.0.0
              inet6 addr
    : ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU
    :16436  Metric:1
              RX packets
    :554439 errors:0 dropped:0 overruns:0 frame:0
              TX packets
    :554439 errors:0 dropped:0 overruns:0 carrier:0
              collisions
    :0 txqueuelen:0
              RX bytes
    :81004227 (77.2 MiB)  TX bytes:81004227 (77.2 MiB
    ************************************************** ****
    و نتیجه دستور دوم :

    کد PHP:
    # iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    acctboth   all  
    --  anywhere             anywhere

    Chain FORWARD 
    (policy ACCEPT)
    target     prot opt source               destination

    Chain OUTPUT 
    (policy ACCEPT)
    target     prot opt source               destination
    acctboth   all  
    --  anywhere             anywhere

    Chain acctboth 
    (2 references)
    target     prot opt source               destination
               tcp  
    --  74-81-168-173.cust.carohosting.net  anywhere            tcp dpt:http
               tcp  
    --  anywhere             74-81-168-173.cust.carohosting.net tcp spt:http
               tcp  
    --  74-81-168-173.cust.carohosting.net  anywhere            tcp dpt:smtp
               tcp  
    --  anywhere             74-81-168-173.cust.carohosting.net tcp spt:smtp
               tcp  
    --  74-81-168-173.cust.carohosting.net  anywhere            tcp dpt:pop3
               tcp  
    --  anywhere             74-81-168-173.cust.carohosting.net tcp spt:pop3
               icmp 
    --  74-81-168-173.cust.carohosting.net  anywhere
               icmp 
    --  anywhere             74-81-168-173.cust.carohosting.net
               tcp  
    --  74-81-168-173.cust.carohosting.net  anywhere
               tcp  
    --  anywhere             74-81-168-173.cust.carohosting.net
               udp  
    --  74-81-168-173.cust.carohosting.net  anywhere
               udp  
    --  anywhere             74-81-168-173.cust.carohosting.net
               all  
    --  74-81-168-173.cust.carohosting.net  anywhere
               all  
    --  anywhere             74-81-168-173.cust.carohosting.net
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:http
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:http
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:smtp
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:smtp
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:pop3
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:pop3
               icmp 
    --  unknown.carohosting.net  anywhere
               icmp 
    --  anywhere             unknown.carohosting.net
               tcp  
    --  unknown.carohosting.net  anywhere
               tcp  
    --  anywhere             unknown.carohosting.net
               udp  
    --  unknown.carohosting.net  anywhere
               udp  
    --  anywhere             unknown.carohosting.net
               all  
    --  unknown.carohosting.net  anywhere
               all  
    --  anywhere             unknown.carohosting.net
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:http
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:http
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:smtp
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:smtp
               tcp  
    --  unknown.carohosting.net  anywhere            tcp dpt:pop3
               tcp  
    --  anywhere             unknown.carohosting.net tcp spt:pop3
               icmp 
    --  unknown.carohosting.net  anywhere
               icmp 
    --  anywhere             unknown.carohosting.net
               tcp  
    --  unknown.carohosting.net  anywhere
               tcp  
    --  anywhere             unknown.carohosting.net
               udp  
    --  unknown.carohosting.net  anywhere
               udp  
    --  anywhere             unknown.carohosting.net
               all  
    --  unknown.carohosting.net  anywhere
               all  
    --  anywhere             unknown.carohosting.net
               all  
    --  anywhere             anywhere 
    ممنون

    سلام ,

    خوب یک کمی دقیق بشید روی این ها ! میبینید که نت ماسک Ip اصلی سرور با نت ماسک دو تا interface که روی eth0 اضافه شدن , یکی نیست !

    شما باید نت ماسک eth0:1 و eth0:2 را مثل نت ماسک ip اصلی interface eth0 ست کنید ! یعنی :

    Mask:255.255.255.128

    موفق باشید

  2. تعداد تشکر ها از aoscentral به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. Connection Error: couldn't connect to host(7
    توسط wp-Ammar در انجمن سوالات و مشکلات
    پاسخ ها: 2
    آخرين نوشته: April 3rd, 2016, 10:57
  2. پاسخ ها: 7
    آخرين نوشته: November 23rd, 2014, 12:51
  3. مشکل (Curl Error) couldn't connect to host - code: 7
    توسط majid.a در انجمن سی پنل CPanel
    پاسخ ها: 8
    آخرين نوشته: August 4th, 2013, 05:56
  4. مشکل (Curl Error) couldn't connect to host - code: 7
    توسط mehrjonoob در انجمن سی پنل CPanel
    پاسخ ها: 12
    آخرين نوشته: July 13th, 2013, 22:00
  5. خطای Module Command Error (Curl Error) couldn't connect to host - code: 7 در ساخت هاست
    توسط benii در انجمن نمایندگی میزبانی وب
    پاسخ ها: 1
    آخرين نوشته: October 1st, 2012, 22:04

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •