Welcome to Dream.In.Code
Become a Java Expert!

Join 149,934 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,485 people online right now. Registration is fast and FREE... Join Now!




Proxy Server

 
Reply to this topicStart new topic

Proxy Server, Java

prajayshetty
22 Jun, 2008 - 11:21 AM
Post #1

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions
sorry for creating a sepreate post but so that i get maximum reply only related to proxy server thats why i created a new post
i have the logic now coz i got some description on how the proxy server work but mine problem is how do i force that every traffic should pass through mine proxy and how do read those ip addres and portadress once the user request to connect through the other site the one which i am gonna implement is that u have to type the ip address
in the gui adn then it will perform some checks but how do i make it automatically
the only thing i need
1) how to make it mandatorythat every network traffic should pass throgh the proxy
2)how to read the port addres and ip address once a new socket is created coz when creating socket we have to specifiy ip addres adn port
but iwant to read port and ip address automatically such as when a browser goto sur some on the web then the browser that want to veiw will create the socket but i want to get that ipaddress and port
one more question
how to create an executable jar file in netbeans

This post has been edited by prajayshetty: 22 Jun, 2008 - 12:26 PM
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Proxy Server
22 Jun, 2008 - 01:23 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,869



Thanked: 53 times
Dream Kudos: 550
My Contributions
QUOTE
1) how to make it mandatorythat every network traffic should pass throgh the proxy
-- I don't think you can in pure java. you need to interact with the OS to do this.

QUOTE
2)how to read the port addres and ip address once a new socket is created coz when creating socket we have to specifiy ip addres adn port
Again since the OS controls the creation of sockets I don't know if you can do this in pure Java.
User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Proxy Server
23 Jun, 2008 - 04:23 AM
Post #3

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions

ok rolleyes.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 04:06PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month