Results 1 to 8 of 8
  1. #1
    JDCAce's Avatar
    JDCAce is offline Member
    Join Date
    Oct 2008
    Location
    Columbus, GA, US
    Posts
    29
    Rep Power
    0

    Default Basic Question from Networking Beginner

    Hello, programmers. I'm pretty much a self-taught Java programmer (with books and online tutorials as my aids), and I find myself ready to go to the next step. I'm interested in testing the Java networking waters. My question probably has an obvious answer to most of you, but am I able to use Java networking code if my Internet doesn't work? My laptop and my PC are wirelessly networked via my router (as are a couple other devices), but my router cannot pick up the Internet signal from my modem (for some unknown reason). Do I need to wait until my Internet is working through my router to try out Java networking. There's a whole chapter in my favorite Java book, and I'm just itching to try it out.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    You don't need an internet connection to write and test code if you have a server on your pc. Use the 127.0.0.1 local host address to communicate between the server and client.
    There is a free server: Tomcat from Apache that a lot of java programmers use that can be downloaded and installed on your PC.

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    On most computers, the name localhost is mapped to 127.0.0.1
    so you can enter that and use the more human friendly name rather than IPv4 octets.

    You may have to make sure the firewall on your computer allows access to and from localhost

  4. #4
    keffie91's Avatar
    keffie91 is offline Member
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    35
    Blog Entries
    1
    Rep Power
    0

    Default

    Tomcat from apache is for Java EE, I thought, Am I ride?
    I thaught it was not for Java SE
    Never give up! ;)

  5. #5
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    EE is just more stuff, I have several bits and pieces from EE on SE 1.5 and it runs better for the most part,... to much bloat to install everything they want you to have.

    You can do what poster wants with 1.2
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  6. #6
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by keffie91 View Post
    Tomcat from apache is for Java EE, I thought, Am I ride? I thaught it was not for Java SE
    Its clear you can not write or spell.

    J2EE is marketing spin. Its a super set of Java SE.

    Tomcat is a servlet container and web server. Tomcat is a great way to implement JSP and Servlets for Java SE.

  7. #7
    sameh_ammar is offline Member
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Default

    ok but there are many difference between Network programming by java and J2EE technolgy ok ????

    what it is difference ???? how can develop network program

    bye thank ????

  8. #8
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Have you done any research?

    Yes, one can write nice networking applicateion in JavaSE

Similar Threads

  1. Java networking.
    By tim in forum New To Java
    Replies: 7
    Last Post: 07-16-2009, 10:43 PM
  2. Basic question about EJB
    By javaplus in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 07-15-2008, 05:44 PM
  3. help with networking and threads
    By byuu in forum Networking
    Replies: 9
    Last Post: 05-21-2008, 05:03 AM
  4. Very basic question
    By gvi in forum New To Java
    Replies: 2
    Last Post: 10-30-2007, 06:30 PM
  5. basic question about files
    By oregon in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 02:34 AM

Posting Permissions

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