How to convert lan port to wan port

You will need to tell us what model router this is, it's a pretty advanced feature and will usually be present on after market routers.

If your router does not support a Dual WAN or changing it through the web interface you may be able to flash the router with a new third party firmware like Tomato or DDWRT.
 
The difference between a WAN and a LAN on a router is something you don't really need to worry about. What a WAN port does is allow you to connect and bridge two separate networks. For example, your routers DHCP server generally will assign IP addresses to any computers requesting it coming through the LAN port. Meanwhile, the WAN port will generally allow you to assign a completely different IP address to it. From there you can bridge two networks that would normally not be able to 'see' each other and the router can connect them internally with some static route assignments.

However, most people have no need for bridging internal separate networks. So you can just hook your cable modem to your router LAN port, and anything you need to your LAN ports as well and you should be able to connect everywhere.

Of course, if you have need for that WAN port beyond what normal people would have, there generally isn't a way to change the WAN port assignments without flashing custom firmware, or getting into things much deeper than is really warranted. In that case, just toss the router and get a new one.
 
I have a RJ 45 cable which comes directly from ISP and plugs in my router.i don't have modem . So after testing I found that my wan port is dead , so I want to know that can I convert LAN port to wan port so that I don't have to buy a new one ???