web hosting and development forums
Web Design and Development Forums Archive


Index - JAVA programming forum

common port used by java progs for common protocols


Post reply

I have a question? What are the common ports used by java programs for common protocols?
See /etc/services on any unix box.
you are not sure? ;)
:)
montanarry, common protocols??
;)
Like http, tcp/ip and so on
You mean like http - 80? It's not java-related :)
montanarry, "cat /etc/services"
Yes Koplaf, are you trying to direct me to some documents? If yes, where are those documents?
they're not docs
the protocols are independent of programming language
they're part of unix system
Oh well I have windows
montanarry, I tried to tell you what file to look in, but I guess you have never heard about unix/linux
I have buddy
I think the services file is available in windows as well, but I am not sure where
montanarry, just google
I did
The file is almost the same everywhere
But didn't get any so i came here I tried this whole phrase
so what are you looking for??
What are the common ports used by java programs for common protocols? It cant search on it I just want to know
you mean common ports for common protocols?
What ports are used and for what protocols by java programs, thats it
montanarry, i see so you want my /etc/services file? :)
Like tomcat uses 80:80 i.e a webserver it serves jsp and servlets
It has a list of port -> protocol oh it's not common 8080 is not a standard port
Ok tell me how many protocols are there And what ports they use Then could you please tell me out of those ports which are/can be used by java applications
there are an infinite number of protocols, everyone uses his own...
montanarry, there are too many if you are looking for non-standard ports
so how many stars are there, exactly?
:D
there are 2^16 ports, you can use them all in java...
Infinite What about standard ports
look at /etc/services
montanarry, using some ports might require admin/root rights
Ernmimril, what standard ports you are talking about? I dont have unix system buddy, i am on windows
montanarry, http://iptables-tutorial.frozentux.net/other/services.txt
montanarry, then why worry about ports? You're vulnerable regardless :)
montanarry, are you just trolling?
No it's not :)
AmeliaR, you got that right man
montanarry,did you google for the services file yet? that is the list of standard services (ports+applications)
For windows ?
yes Windows systems: %SystemRoot%\System32\drivers\etc\services for example: C:\WINDOWS\system32\driver\etc do you know how to use google?
Yup i got it So Koplaf: standar protocols are tcp/ip and udp right? Standard*
go and buy some books on network programming how old are you? 7? "unix network programming" may be a good book to read tcp/udp and ip are network protocols on a low level, your applications generally use a higher level protocol like http http typically runs on top of tcp/ip
IP is in the network layer, tcp and udp are in the transport layer, http is in the application layer - each dependent upon and "riding on" the previous.
So java programs can use any port, right ?
If the OS allows it, yeah
montanarry, more or less, yeah, and depends on whether you're talking about as a server or as a client.
Server
like Lusis Backwood JR said, it depends on the underlying OS. A decent OS won't let you bind to a port <1024 if you're not running with admin privileges. And even some not-so-decent OS' as well.
Ernimri, thanks How to overide java.lang.Object.equals so that equality is based on values rather than references?
No kiddin!
Hahaha
:(
Google is your friend
Thanks guys :)




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com