How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Homework
Satisfied Customers: 219
Experience:  PhD in Computer Science
Type Your Homework Question Here...
George Sibiya is online now
A new question is answered every 9 seconds

I have a lab which is to write webServer in C in linux

Customer Question

i have a lab which is to write webServer in C in linux ubuntu, i done most of the code, but yet i can reach the server when i enter localhost:2000 in my browser, i think there is problem with the code, can anyone help me? i will attach the lab, and if someone is happy to help i will send the code
Submitted: 1 year ago.
Category: Homework
Expert:  Kris8472 replied 1 year ago.

Have you set this up on the client side for uBuntu? Ubunto needs to be configured so the ports are open and the console mode is configuted to allow incoming NAT translations.

Customer: replied 1 year ago.
how to do that?
Customer: replied 1 year ago.
i still believe that i have problem in my code
Expert:  George Sibiya replied 1 year ago.


I will test it and communicate as soon as I figure out the problem.



Expert:  George Sibiya replied 1 year ago.


It seems your server is not writing back a response to the client.

If I perform a portscan I do not get a response it reports "tcpwrapped"

With a browser I get "The connection was reset." which means the connection terminates without the browser having received a response.

I hereby upload a working sample that you can compare with side by side and I think it can help you figure out whats missing in your code.

The sample is from here I have just added the index page.



Expert:  George Sibiya replied 1 year ago.

You need to spend $3 to view this post. Add Funds to your account and buy credits.