Results 1 to 11 of 11
  1. #1
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default Port Forwarding In Java?

    Hello, I was wondering if their is anyway to port forward in java. I am sure their is some way to do this, but I really would have no idea how to even attempt to do this, so I would appreciate if someone could either give me some code that port forwards or explain how I would go about port forwarding in java.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,778
    Rep Power
    25

    Default

    Is port forwarding done by a setting in a router to assign the router's IP address to one of the PCs on its LAN?

  3. #3
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Is port forwarding done by a setting in a router to assign the router's IP address to one of the PCs on its LAN?
    I am not exactly sure. I know what it is used for (of course), but how it is actually done I don't now. If you want to look at a wiki on it heres a link:
    Port forwarding - Wikipedia, the free encyclopedia

    Port forwarding is used to let normally a server go past a routers firewall so that others may connect to it.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,778
    Rep Power
    25

    Default

    Would the settings be made by communicating to the router and telling it what you want done?

  5. #5
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Would the settings be made by communicating to the router and telling it what you want done?
    I think so, and I found a pretty good definition for it.


    In home networking, port forwarding, also called port mapping or punch-through, enables you to create a permanent translation entry that maps a protocol port on your gateway machine to an IP address and protocol port on your private LAN. It's a transparent process, meaning network clients cannot see that port forwarding is being done. This process enables you to run a public Internet service on a machine that is otherwise hidden from the Internet by your gateway. Port forwarding may also be used to aggregate traffic from an application that uses several ports for transactions and consolidate it into one port for reporting the total traffic identified with that application.

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,778
    Rep Power
    25

    Default

    Do you know how to tell your router that you want that done? Is it the same for all routers or will each one be different?

    Mine has a URL I can use to connect to it via a browser and have it change its settings.

  7. #7
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Do you know how to tell your router that you want that done? Is it the same for all routers or will each one be different?
    No I really have no idea I have never really worked with networking in java

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,778
    Rep Power
    25

    Default

    Mine has a URL I can use to connect to it via a browser and have it change its settings.
    Try writing a small program that uses your router's address, send it an HTTP GET and see what it responds.

  9. #9
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Mine has a URL I can use to connect to it via a browser and have it change its settings.
    Try writing a small program that uses your router's address, send it an HTTP GET and see what it responds.
    What is an HTTP GET

  10. #10
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,778
    Rep Power
    25

    Default

    An HTTP GET is the most basic command that a browser sends to a server asking for a html file.

  11. #11
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    136
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    An HTTP GET is the most basic command that a browser sends to a server asking for a html file.
    Alright thanks for your help I will tell you what I received from my router later, but for right now I have to go.

Similar Threads

  1. Forwarding from Servlet to JSP
    By Robert_85 in forum Java Servlet
    Replies: 0
    Last Post: 04-25-2010, 05:37 PM
  2. Replies: 1
    Last Post: 01-17-2010, 04:29 PM
  3. forwarding to a servlett
    By dilanka007 in forum New To Java
    Replies: 2
    Last Post: 01-17-2010, 01:23 PM
  4. Forwarding data problem with struts.xml
    By Shaolin in forum Web Frameworks
    Replies: 0
    Last Post: 01-08-2009, 06:29 AM
  5. Forwarding mails in message/rfc822
    By prithviraj in forum Advanced Java
    Replies: 0
    Last Post: 05-18-2008, 11:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •