0

Sorry for i can't precisely specify the title.

I want to ask that i have created a server using ServerSocket class in java. and i am able to run it easily using 127.0.0.1:7896 and can fetch page from the browser. You can check out this using http://stackoverflow.com/questions/4655355/small-http-server-using-java

But when i try to run this with my external ip address it doesn't worked. So can anyone please tell me whether i am conceptually wrong or it is possible. if it is then how to?

Thanks

13
  • what you you mean with "external ip"? the public ip you received from your ISP? Commented Jan 14, 2011 at 10:35
  • Maybe a firewall is blocking incoming connections on port 7896 or are you natted? Commented Jan 14, 2011 at 10:35
  • ya external ip means what you checked using whatismyip.com. Commented Jan 14, 2011 at 10:36
  • @Francessco i am using ubuntu 10.10 i don't know whether it do have any firewall or not. Commented Jan 14, 2011 at 10:37
  • 1
    ok..so your router nat your pc. You have to forward incoming connections on port 7896 to your local ip (192.168.something I guess) on port 7896. This could be done on your dslrouter admin page if it support this kind of configuration Commented Jan 14, 2011 at 10:41

1 Answer 1

1

Are you behind a router or somekind of firewall ? Your own Operating system may be blocking the call.

there is no reason why you shouldnt be able to do it by using the external ip, as long as the DNS knows it and your machine and infrastructure allows the call

Sign up to request clarification or add additional context in comments.

3 Comments

i m having a broadband connection and using ubuntu 10.10.
You connecting directly your computer to your modem? If so it might be an ubuntu safety configuration.
hey but can't i edit my local dns file to have this known. as dns uses distributed technique and i think there is one small copy on my computer as textbooks i read, says

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.