Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Very Urgent .. Please respond immediately  RSS feed

 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I ran in to some issues.. and my code needs to e in production Please respond immediately....
I am trying to open a socket to a machine outside our firewall at a perticular port. Say our firewall is f1 and the firewall of the url to which i am opening connection is f2.
f1 is open for only perticular machines particular port of f2 and vise versa. (dedicated circuite is the thing I heared??? I am very new, never came across all these firewall things so excuse me...)
How to I restrict my client socket to only those ports??? I heared of some socket implementation factory and all...But how to use those. Do any one have code samples.....
Thanks alot for ur help in advance.
Hope I am clear if not please respond with your questions
 
kkyim
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may try the following:
System.getProperties("proxySet","true");
System.getProperties("proxyHost",proxyMachineName);
System.getProperties("proxyPort",poerNumber);
Hop this help you!

 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks kkyim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!