using a static ip address when accessing internet through wireless (wifi)

1

I have got a static ip address for lease from my ISP. So the requests for that ip address is forwarded to the modem in my house. from here it is connected to other devices through wifi. On one o the devices my server is running in jboss on port 8080. But all the devices have the same ip address. How can I forward the requests to that particular machine.

Ashwin

Posted 2012-07-27T09:27:30.030

Reputation: 347

2Should probably be on SuperUser – David Yell – 2012-07-27T11:03:02.450

Do you have NAT on your router? Or port forwarding? – Dave – 2012-07-27T11:04:00.780

@DaveRook : I have NAT. But am not sure of port forwarding. I have something called port mapping. – Ashwin – 2012-07-27T14:17:23.413

Answers

4

Your internal network devices will not all have the same internal IP, otherwise they wouldn't work. What I assume you mean is that they all have the same external WAN ip.

In this case you will need to forward the port in your router settings to the IP of the device running your server.

For example, WAN ip 12.34.56.78
LAN,
Device 1 192.168.1.1
Device 2 192.168.1.2
Server 192.168.1.3

So you'll want to forward all your port 8080 requests through to the 192.168.1.3 ip on your network.

You can find a short guide on how to forward ports here, http://www.wikihow.com/Set-up-Port-Forwarding-on-a-Router

David Yell

Posted 2012-07-27T09:27:30.030

Reputation: 154

I have read Link. I don't have port fowarding on my router. I have something called port mapping. It contains Group Name, Grouped Interfaces and Available Interfaces. – Ashwin – 2012-07-27T14:23:06.077

I would make a guess that 'Group name' would be what you call it. 'Grouped interfaces' would be your ports, and then 'Available interfaces' would be where you forward to. Have a google for your router model to see if you can turn up some instructions. – David Yell – 2012-07-27T14:39:54.650

Finally got it. It is there in the NAT section. But still the request does not get forwarded to the server. What can be the reasons for this? I am able to access internet from the server. I am able to ping the server from another device. But the request on port 8080 is not getting forwarded to the server. My request url is of the form - http://123.123.234.543:8080/appname. Where 123.123.234.543 is a public example (just suppose). I have forwarded the requests on port 8080 to 192.168.1.7 (server). But since it is http, should I also forward requests on port 80?

– Ashwin – 2012-07-27T16:28:08.620

If you are looking to serve HTTP requests then yes, I would also forward port 80. Also check the server's firewall and/or iptables to ensure that 8080 isn't blocked on the server. – David Yell – 2012-07-30T08:00:43.463