Mobile app version of vmapp.org
Login or Join
Kaufman445

: Do web hosting companies allow server-side scripts to make external data requests? I'm currently ready to deploy an asp.net website and looking at web hosting companies. The C# code behind periodically

@Kaufman445

Posted in: #AspNet #ServerSideScripting #WebHosting

I'm currently ready to deploy an asp.net website and looking at web hosting companies.

The C# code behind periodically uses HttpWebRequest to pull data from an external website to insert into a SQL database. This is only a server script and clients won't have any affect on when or how it runs.

This my first time deploying a site, so my question is.... do web hosting companies allow external http requests? Is there anything specific I should be looking for to ensure this will work when deployed?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

The simple answer is yes. This is known as "inbound" traffic, whereas requests made by a visitor to a server (like reading this answer) is known as "outbound" traffic.

Most web hosting companies combine both into a monthly maximum amount of data transferred through their network. Some offer free inbound traffic as well. So depending on how much inbound traffic your hosting account or server will have, you might want to consider that option.

"Unmetered" bandwidth is another option in which there is no maximum outbound or inbound, but the connection to the Internet is typically not the fastest available. For a site with a reasonable amount of outbound and inbound traffic that might be a consideration if you don't want to monitor the server for bandwidth overages, which can be costly.

One final thing to confirm just to be on the safe-side is that your web hosting company doesn't block the port or range of ports that you'll need to do the request with.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme