forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Which port(s) to open?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Fri Jan 16, 2004 2:13 pm    Post subject: Which port(s) to open? Reply with quote

I have a program that exchanges data with a web server. It does two things via the internet Extension Suite:

It uses an HTTP "Get" command to download a file to the local drive (for updates.)

It also uses the FTP function to send and receive files on a daily basis.

I have one user who is having firewall problems. They are locked down so tight that they can't even browse internet sites. The network admin will open a port for my program to go through, but which one should he open?

I'm assuming port 21, since it is the default FTP port.

For HTTP, would I use the Proxy function to route things through this port?

This is not my area of expertise, so any help is greatly appreciated.

_________________
Joe Floyd
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Jan 16, 2004 2:47 pm    Post subject: Reply with quote

Joe,
If the administrator is willing to open a port for you then all you should need is Port 21 for the FTP but I doubt that he/she would open that port. Unless there is an actuall proxy server using the proxy settings would not help much. If there is a proxy then yes by all means use the proxy for both HTTP and FTP but really you should be able to do just HTTP with a HTTP GET and to push the file use HTTP POST. I am not really into internet programming so I cannot give you specifics about the HTTP POST but there are others that are more into this area on the forum here.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Jan 16, 2004 4:46 pm    Post subject: Reply with quote

A Proxy won't help if the box is locked down, the point is you won't be able to connect to the proxy either if ports are locked down.

If the admin will open a port he would be more likely to open port 80 (http) then 21 (ftp), since ftp provides a backdoor into the system once passwords have been sniffed. It's unlikely an admin who has locked down a system so tight like that would be willing to open up ftp.

I suggest asking to open up port 80 for http communication. You can then download files using http or get files this way.

OR

You can ask for a custom port and use standard TCP/IP to send/receive files. You will need to send data of a file as ascii characters and then re-assemble the file on the client/server end. Using BINFILE should allow you to get a file as a set of ascii characters which you can transmit using a tcp connection.
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Fri Jan 16, 2004 5:03 pm    Post subject: Reply with quote

Thanks for the info -

The internet extension DLL allows you to specify a port for FTP besides the default 21. Should I use this feature? Can I just pick a number, tell the network admin that number, and use that port - like port 25? And then just direct all my FTP stuff through port 25?

_________________
Joe Floyd
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Fri Jan 16, 2004 7:55 pm    Post subject: Reply with quote

Just google at 'port <your port number>' to see if it's already taken by another process Wink

Regards,
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Jan 16, 2004 8:03 pm    Post subject: hummm Reply with quote

or you can do a port scan with freeware s/w that is out there to Smile one thing you said is port 25 if i recall port 25 is one of the ports for e-mail. if you have to uses ftp then i would uses like port 22 Smile

note: if you do a port scan with any s/w that is out there its best to let the admin know you are doing that. cuase so admin might get a little mad Smile

other thing is can you have your porgram do all the fuction thru one port? if so that might be the best way this way the admin don't have to open more ports then what is needed.

I don't know if this info helps ya or not i hope it does Smile

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Jan 16, 2004 8:50 pm    Post subject: here is a list Reply with quote

here is a link that tells you what ports are used for. this way you can pick a port that other program is not using,etc

http://www.iana.org/assignments/port-numbers


hope this helps

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Fri Jan 16, 2004 9:17 pm    Post subject: Reply with quote

I'll do a little more checking of the way it is set up. Thanks for all the replies.
_________________
Joe Floyd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group