LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2011, 06:15 PM   #1
sriksrid
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Exchanging data between the internet and a localhost


Hi

New user here. I have an Apache 2 server setup in Ubuntu 10.04 LTS on my lab computer. The server listens on port 80, by default. I also have another process listening on port 4000 - this is a special server that executes some Matlab and other application scripts. However, due to university policy (or some licensing/faculty regulation - not really sure), this port 4000 has been set as one that listens only to the localhost. Now, we need to allow a few of the scripts to be run by people remotely.

We tried to setup a web interface - they enter a few values into a HTML form and submit. This form has action="http://localhost:4000/desiredFile.html" (basically, we were hoping the external form turns data over to the internal form), thereby keeping everyone happy. However, it turns out that this didn't work - the server on port 4000 realizes that the request isn't internal.

What would be the best way of handling it? While we did consider port forwarding, we didn't want everything to be accessible from the internet - i.e. we wanted a tightly controlled interface when accessed from outside, but if someone writes a program on localhost, we want everything to go through as normal (i.e. the current setup). Is there a way to do this without duplication (i.e. setup a new port 5000, that has only the components we want the external users to access)?

Thank you
Ssrik
 
Old 06-05-2011, 06:59 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Your BEST bet is to make sure you work with your University's IT staff (the guys who are responsible for your port 4000 server) to make sure that, whatever you do, you're not violating any policies or security guidelines.

Having said that, several alternatives might be:

1. Configure the port 4000 server to accept connections from other hosts.
If it's an Apache server (it sounds like perhaps this is the case), you can easily configure an "allowed" range of IP addresses.

2. Replicate port 4000 server functionality on some other, less restrictive server.

3. Modify the port 4000 server to use some manner of "web services" so that computations can remain locally computed, but the results can be shared with other applications running on other hosts.
 
1 members found this post helpful.
Old 06-06-2011, 05:55 PM   #3
sriksrid
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi

Thank you for the information. I was trying to accomplish the third alternative (and I still am), but I might just move over to a less restrictive hosting option.

Thanks
Ssrik
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Permissions :: Access denied for user 'www-data'@'localhost' own3mall Linux - Software 5 08-09-2009 07:52 PM
Black screen after exchanging with Xbox 360. ArthurHuang Linux - Hardware 0 05-05-2009 10:06 PM
What is fastest way of exchanging data between child and parent process Zagi Programming 3 07-12-2008 01:47 PM
exchanging data between 2 computer using serial port blackzone Linux - General 1 07-24-2004 03:54 AM
C++ Signal Exchanging Problem gauge73 Linux - Newbie 1 02-16-2004 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration